New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
2019WP/FormCode (diff) – NEMO

Changes between Version 14 and Version 15 of 2019WP/FormCode


Ignore:
Timestamp:
2018-11-06T15:35:23+01:00 (5 years ago)
Author:
nemo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 2019WP/FormCode

    v14 v15  
    11{{{#!html 
    2 <form id="wp_action"> 
    3  <table style="margin: 0px auto;"> 
     2<table style="margin: 0px auto;"> 
    43  <tbody> 
    5    <tr> 
    6     <td> 
    7      <fieldset style="height: 16em; display: grid;"><legend>1 - Define action</legend> 
    8       <table> 
    9        <tbody style="vertical-align: inherit;"> 
    10         <tr> 
    11          <th>Scope</th> 
    12          <td> 
    13           <select id="realm" onchange="val()" required> 
    14            <option value=""></option> 
    15            <optgroup label="Institutes (specific action)"> 
    16             <option value="CMCC"    >CMCC          </option> 
    17             <option value="CNRS"    >CNRS-INSU     </option> 
    18             <option value="MERCATOR">Mercator Océan</option> 
    19             <option value="UKMO"    >Met Office    </option> 
    20             <option value="NOC"     >NERC-NOC      </option> 
    21            </optgroup> 
    22            <optgroup label="Streams (shared action)"     > 
    23             <option value="AGRIF"  >AGRIF                     </option> 
    24             <option value="ASINTER">Air-Sea Interactions      </option> 
    25             <option value="HPC"    >HPC                       </option> 
    26             <option value="KERNEL" >Kernel                    </option> 
    27             <option value="PUBS"   >Publications              </option> 
    28             <option value="SI3"    >SI3                       </option> 
    29             <option value="TOP"    >TOP                       </option> 
    30             <option value="ENHANCE">Enhancements (if no other)</option> 
    31            </optgroup> 
    32           </select> 
    33          </td> 
    34         </tr> 
    35         <tr> 
    36          <th>Number</th> 
    37          <td> 
    38           <select id="increment" onchange="val()"></select> 
    39           <span class="hint">Incremental, check free nb above</span> 
    40          </td> 
    41         </tr> 
    42         <tr> 
    43          <th>Suffix</th> 
    44          <td> 
    45           <input type="text" id="suffix" placeholder="Name(s)_Keyword(s)" col="20" required><br> 
    46           <span class="hint">Identify PI(s) and field(s), <u>no space</u></span> 
    47          </td> 
    48         </tr> 
    49         <tr> 
    50          <th><em>Preview</em></th> 
    51          <td> 
    52           <em id="name_preview"></em><br> 
    53           <button type="reset" onclick="resetForm();">Clear!</button> 
    54          </td> 
    55         </tr> 
    56        </tbody> 
    57       </table> 
    58      </fieldset> 
    59     </td> 
    60     <td> 
    61      <fieldset style="height: 16em; display: grid;align-content: center;"><legend>2 - Create resources</legend> 
    62       <input type="hidden" name="summary"   value=""               id="summary"> 
    63       <input type="hidden" name="type"      value="Task"                       > 
    64       <input type="hidden" name="milestone" value="2019 WP"                    > 
    65       <input type="hidden" name="version"   value="trunk"                      > 
    66       <input type="hidden" name="action"    value="edit"                       > 
    67       <input type="hidden" name="template"  value="Workplan/Action"            > 
    68       <input type="hidden" name="owner"     value=""                           > 
    69       <p> 
    70        <input  type="submit" id="form_wiki"   value="Create wiki page" formtarget="_blank" formaction="/nemo/wiki/2019WP/__REPLACE_DYNAMICALLY__"><br> 
    71        <span class="hint">Development preview and review</span> 
    72       </p> 
    73       <p> 
    74        <input  type="submit" id="form_ticket" value="Open task ticket" formtarget="_blank" formaction="/nemo/newticket"                             ><br> 
    75        <span class="hint">Monitoring & Discussion</span> 
    76       </p> 
    77      </fieldset> 
    78     </td> 
    79    </tr> 
     4    <tr> 
     5      <td> 
     6        <fieldset style="height: 16em; display: grid;"><legend>1 - Define action</legend> 
     7          <table> 
     8            <tbody style="vertical-align: inherit;"> 
     9              <tr> 
     10                <th>Scope</th> 
     11                <td> 
     12                  <select id="realm" onchange="val()" required> 
     13                    <option value=""></option> 
     14                    <optgroup label="Institutes (specific action)"> 
     15                      <option value="CMCC">CMCC          </option> 
     16                      <option value="CNRS">CNRS          </option> 
     17                      <option value="MOI" >Mercator Océan</option> 
     18                      <option value="UKMO">Met Office    </option> 
     19                      <option value="NOC" >NOC           </option> 
     20                    </optgroup> 
     21                    <optgroup label="Streams (shared action)"     > 
     22                      <option value="AGRIF"  >AGRIF                     </option> 
     23                      <option value="ASINTER">Air-Sea Interactions      </option> 
     24                      <option value="HPC"    >HPC                       </option> 
     25                      <option value="KERNEL" >Kernel                    </option> 
     26                      <option value="PUBS"   >Publications              </option> 
     27                      <option value="SI3"    >SI3                       </option> 
     28                      <option value="TOP"    >TOP                       </option> 
     29                      <option value="VALID"  >Validation                </option> 
     30                      <option value="ENHANCE">Enhancements (if no other)</option> 
     31                    </optgroup> 
     32                  </select> 
     33                </td> 
     34              </tr> 
     35              <tr> 
     36                <th>Number</th> 
     37                <td> 
     38                  <select id="increment" onchange="val()"></select> 
     39                  <span class="hint">Incremental, check free nb above</span> 
     40                </td> 
     41              </tr> 
     42              <tr> 
     43                <th>Suffix</th> 
     44                <td> 
     45                  <input type="text" id="suffix" placeholder="Name(s)_Keyword(s)" col="20" required><br> 
     46                  <span class="hint">Identify PI(s) and field(s), <u>no space</u></span> 
     47                </td> 
     48              </tr> 
     49              <tr> 
     50                <th><em>Preview</em></th> 
     51                <td> 
     52                  <em id="name_preview"></em><br> 
     53                  <button type="reset" onclick="resetForm();">Clear!</button> 
     54                </td> 
     55              </tr> 
     56            </tbody> 
     57          </table> 
     58        </fieldset> 
     59      </td> 
     60      <td> 
     61        <fieldset style="height: 16em; display: grid;align-content: center;"><legend>2 - Create resources</legend> 
     62          <p> 
     63            <form id="form_wiki"> 
     64              <input type="hidden" name="action"    value="edit"                                                                                          > 
     65              <input type="hidden" name="template"  value="Workplan/Action"                                                                               > 
     66              <input type="submit" id="submit_wiki" value="Create wiki page" formtarget="_blank" formaction="/nemo/wiki/2019WP/__REPLACE_DYNAMICALLY__"><br> 
     67              <span class="hint">Development preview and review</span> 
     68            </form> 
     69          </p> 
     70          <p> 
     71            <form id="form_ticket"> 
     72              <input type="hidden" name="summary"   value=""                 id="summary"                                    > 
     73              <input type="hidden" name="type"      value="Task"                                                             > 
     74              <input type="hidden" name="milestone" value="2019 WP"                                                       > 
     75              <input type="hidden" name="version"   value="trunk"                                                            > 
     76              <input type="hidden" name="owner"     value=""                                                                 > 
     77              <input type="submit" id="form_ticket" value="Open task ticket" formtarget="_blank" formaction="/nemo/newticket"><br> 
     78              <span class="hint">Monitoring & Discussion</span> 
     79            </form> 
     80          </p> 
     81        </fieldset> 
     82      </td> 
     83    </tr> 
    8084  </tbody> 
    81  </table> 
    82 </form> 
     85</table> 
    8386 
    8487<script type="text/javascript"> 
     
    110113 
    111114  // Set wiki page name on the fly 
    112   $("#wp_action").submit(function() { 
    113     var form_action = $("#form_wiki").attr("formaction"); 
     115  $("#form_wiki").submit(function() { 
     116    var form_action = $("#submit_wiki").attr("formaction"); 
    114117    form_action = form_action.replace("__REPLACE_DYNAMICALLY__", action_name); 
    115     $("#form_wiki").attr("formaction", form_action); 
     118    $("#submit_wiki").attr("formaction", form_action); 
    116119  }); 
    117120