First version of the volunteer form ready.
authorrsiddharth <rsd@gnu.org>
Mon, 15 Sep 2014 17:18:09 +0000 (13:18 -0400)
committerrsiddharth <rsd@gnu.org>
Mon, 15 Sep 2014 17:22:55 +0000 (13:22 -0400)
The 'State' select field does not update when the 'Country' select
field is changed. I guess CORS must be enabled at crm.fsf.org for this
to work.

2015/volunteer/index.html
server/2015/volunteer_js.html [new file with mode: 0644]

index efe520360f58035f4f1f436de56f0af7af6ed090..7f0560a380936a835f93bea7fa28a5bf5ce6ea06 100755 (executable)
                          use that in planning future events like LibrePlanet
                          in different cities. We welcome you to use the #libreplanet channel on Freenode for informal communication.
                        </p>
-                       <form action="https://crm.fsf.org/civicrm/profile/create?gid=237&amp;reset=1" 
+                       <form action="https://crm.fsf.org/civicrm/profile/create?gid=327&amp;reset=1"
                                  class="form-horizontal margin-top" method="post" name="Edit" id="Edit1" role="form">
                          <div>
+                               <input name="entryURL" type="hidden"
+                                          value="https://crm.fsf.org/civicrm/contact/view/delete?=&amp;amp;reset=1&amp;amp;delete=1&amp;amp;cid=744133" />
                                <input name="postURL" type="hidden"
-                                          value="https://libreplanet.org/2014/volunteer/confirmation.html" />
-                               <input name="cancelURL" type="hidden" value="https://libreplanet.org/2014" />
-                               <input name="add_to_group" type="hidden" value="335" />
+                                          value="https://libreplanet.org/2015/volunteer/confirmation.html" />
+                               <input name="cancelURL" type="hidden" value="https://libreplanet.org/2015" />
+                               <input name="add_to_group" type="hidden" value="805" />
                                <input name="_qf_default" type="hidden" value="Edit:cancel" />
                          </div>
 
                                  </div>
                                </div>
 
+                               <div id="editrow-custom_195" class="form-group">
+                                 <label class="col-sm-3 control-label">
+                                       When would you be interested in
+                                       volunteering?</label>
+
+                                 <div class="col-sm-9">
+                                       <input type="hidden" name="custom_195[1]"
+                                                  value=""/>
+
+                                       <label class="checkbox-inline"
+                                                  for="custom_195_1">
+                                       <input
+                                          data-crm-custom="LP15_Volunteer_Interests:When_would_you_be_interested_in_volunteering_"
+                                          id="custom_195_1" name="custom_195[1]" type="checkbox"
+                                          value="1"
+                                          />During the conference
+                                       </label>
+
+
+                                       <input type="hidden"
+                                                  name="custom_195[2]" value=""/>
+                                       <label class="checkbox-inline" for="custom_195_2">
+                                       <input data-crm-custom="LP15_Volunteer_Interests:When_would_you_be_interested_in_volunteering_"
+                                                  id="custom_195_2" name="custom_195[2]" type="checkbox"
+                                                  value="1" />
+                                       Before the conference
+                                       </label>
+                                 </div>
+                               </div>
+
+
+                               <div id="editrow-custom_196" class="form-group">
+                                 <label class="col-sm-3 control-label">Could you come to
+                                       the Boston area?</label>
+
+                                 <div class="col-sm-9">
+                                       <input type="hidden" name="custom_196[1]"
+                                                  value=""/>
+
+                                       <label class="checkbox-inline" for="custom_196_1">
+                                         <input data-crm-custom="LP15_Volunteer_Interests:Could_you_come_to_the_Boston_area_"
+                                                  id="custom_196_1" name="custom_196[1]" type="checkbox"
+                                                  value="1"/>
+                                         Before the conference
+                                       </label>
+
+                                       <input type="hidden"
+                                                  name="custom_196[2]" value=""
+                                                  />
+                                       <label class="checkbox-inline" for="custom_196_2">
+                                         <input data-crm-custom="LP15_Volunteer_Interests:Could_you_come_to_the_Boston_area_"
+                                                        id="custom_196_2" name="custom_196[2]" type="checkbox"
+                                                        value="1"
+                                                        />
+                                         During the conference
+                                       </label>
+                                 </div>
+                               </div>
+
+
+                               <div id="editrow-custom_191"
+                                        class="form-group">
+                                 <label for="custom_191" class="col-sm-3 control-label">
+                                       Is there something in particular you'd like to
+                                       work on?
+                                 </label>
+                                 <div class="col-sm-5">
+                                       <textarea rows="4"
+                                                         data-crm-custom="LP15_Volunteer_Interests:How_would_you_like_to_help_"
+                                                         name="custom_191" id="custom_191"
+                                                         class="form-control"></textarea>
+                                 </div>
+                               </div>
+
+
+                               <div id="editrow-custom_79_1" class="form-group">
+                                 <div class="col-sm-3">
+                                       <p class="lp-left-form-checkbox-text">
+                                               Would you also like to receive our
+                                               monthly Free Software Supporter newsletter?
+                                       </p>
+                                 </div>
+                                 <div class="col-sm-5">
+                                       <div class="checkbox">
+                                         <input type="hidden" name="custom_79[yes]"
+                                                        value="" />
+                                         <label for="custom_79_yes1">
+                                               <input data-crm-custom="Simple_mailing_list_signup:Would_you_like_to_join_our_mailing_list_"
+                                                          id="custom_79_yes1" name="custom_79[yes]"
+                                                          type="checkbox" value="1" checked="checked"/>
+                                               Sign me up!</label>
+                                       </div>
+                                 </div>
+                               </div>
+
+
                                <div id="editrow-city-Primary"
                                         class="form-group">
                                  <label for="city-Primary" class="col-sm-3 control-label">
                                                   class="form-control" />
                                  </div>
                                </div>
-                               
-                               <div id="editrow-custom_133"
-                                        class="form-group">
-                                 <label for="custom_133" class="col-sm-3 control-label">
-                                       How would you like to participate as a volunteer
-                                       for LibrePlanet 2014?
-                                 </label>
-                                 <div class="col-sm-5">
-                                       <textarea rows="4"
-                                                         name="custom_133" id="custom_133"
-                                                         class="form-control"></textarea>
-                                 </div>
-                               </div>
-
 
-                               <div id="editrow-custom_79_1" class="form-group">
-                                 <div class="col-sm-3">
-                                       <p class="lp-left-form-checkbox-text">
-                                               Would you also like to receive our
-                                               monthly Free Software Supporter newsletter?
-                                       </p>
-                                 </div>
-                                 <div class="col-sm-5">
-                                       <div class="checkbox">
-                                         <input type="hidden" name="custom_79[yes]"
-                                                        value="" />
-                                         <label for="custom_79_yes1">
-                                               <input id="custom_79_yes1" name="custom_79[yes]"
-                                                          type="checkbox" value="1" checked="checked"/>
-                                               Sign me up!</label>
-                                       </div>
-                                 </div>
-                               </div>
                                
                          </div><!-- end form-layout-compressed for last
                                                 profile --> 
                          </div>
                        </form>
 
-                 </div> <!-- end of LPC 14 main text -->
-               </div>
-         </div> <!-- end of container -->
-
-       </div> <!-- end of wrapper -->
-
 <!--#include virtual="/server/2015/footer.html"-->
-<!--#include virtual="/server/2015/home_js.html"-->
+<!--#include virtual="/server/2015/volunteer_js.html"-->
 <!--#include virtual="/server/2015/close.html" -->
diff --git a/server/2015/volunteer_js.html b/server/2015/volunteer_js.html
new file mode 100644 (file)
index 0000000..7ea9878
--- /dev/null
@@ -0,0 +1,22 @@
+<script type="text/javascript"
+       src="/2015/assets/js/jquery-1.11.1.min.js">
+</script>
+
+<script type="text/javascript"
+               src="/2015/assets/js/civicrm-4.4.jquery.chainedSelects.js">
+</script>
+
+<script type="text/javascript"
+               src="/2015/assets/js/jquery.form-3.25.0.js">
+</script>
+
+<script type="text/javascript">
+         var cj = jQuery.noConflict(); $ = cj;
+
+         cj(function() {
+             countryID = "#country-Primary"
+             stateProvinceID = "#state_province-Primary"
+             callbackURL = "https://crm.fsf.org/civicrm/ajax/jqState"
+             cj(countryID).chainSelect(stateProvinceID, callbackURL, null);
+         });
+</script>