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.
PageTemplates/Workplan/Form (diff) – NEMO

Changes between Version 23 and Version 24 of PageTemplates/Workplan/Form


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

--

Legend:

Unmodified
Added
Removed
Modified
  • PageTemplates/Workplan/Form

    v23 v24  
    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          </option> 
    18             <option value="MOI" >Mercator Océan</option> 
    19             <option value="UKMO">Met Office    </option> 
    20             <option value="NOC" >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="VALID"  >Validation                </option> 
    31             <option value="ENHANCE">Enhancements (if no other)</option> 
    32            </optgroup> 
    33           </select> 
    34          </td> 
    35         </tr> 
    36         <tr> 
    37          <th>Number</th> 
    38          <td> 
    39           <select id="increment" onchange="val()"></select> 
    40           <span class="hint">Incremental, check free nb above</span> 
    41          </td> 
    42         </tr> 
    43         <tr> 
    44          <th>Suffix</th> 
    45          <td> 
    46           <input type="text" id="suffix" placeholder="Name(s)_Keyword(s)" col="20" required><br> 
    47           <span class="hint">Identify PI(s) and field(s), <u>no space</u></span> 
    48          </td> 
    49         </tr> 
    50         <tr> 
    51          <th><em>Preview</em></th> 
    52          <td> 
    53           <em id="name_preview"></em><br> 
    54           <button type="reset" onclick="resetForm();">Clear!</button> 
    55          </td> 
    56         </tr> 
    57        </tbody> 
    58       </table> 
    59      </fieldset> 
    60     </td> 
    61     <td> 
    62      <fieldset style="height: 16em; display: grid;align-content: center;"><legend>2 - Create resources</legend> 
    63       <input type="hidden" name="summary"   value=""                id="summary"> 
    64       <input type="hidden" name="type"      value="Task"                        > 
    65       <input type="hidden" name="milestone" value="`$YEAR` WP"                  > 
    66       <input type="hidden" name="version"   value="trunk"                       > 
    67       <input type="hidden" name="action"    value="edit"                        > 
    68       <input type="hidden" name="template"  value="Workplan/Action"             > 
    69       <input type="hidden" name="owner"     value=""                            > 
    70       <p> 
    71        <input  type="submit" id="form_wiki"   value="Create wiki page" formtarget="_blank" formaction="/nemo/wiki/`$YEAR`WP/__REPLACE_DYNAMICALLY__"><br> 
    72        <span class="hint">Development preview and review</span> 
    73       </p> 
    74       <p> 
    75        <input  type="submit" id="form_ticket" value="Open task ticket" formtarget="_blank" formaction="/nemo/newticket"                             ><br> 
    76        <span class="hint">Monitoring & Discussion</span> 
    77       </p> 
    78      </fieldset> 
    79     </td> 
    80    </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/`$YEAR`WP/__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="`$YEAR` 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> 
    8184  </tbody> 
    82  </table> 
    83 </form> 
     85</table> 
    8486 
    8587<script type="text/javascript"> 
     
    111113 
    112114  // Set wiki page name on the fly 
    113   $("#wp_action").submit(function() { 
    114     var form_action = $("#form_wiki").attr("formaction"); 
     115  $("#form_wiki").submit(function() { 
     116    var form_action = $("#submit_wiki").attr("formaction"); 
    115117    form_action = form_action.replace("__REPLACE_DYNAMICALLY__", action_name); 
    116     $("#form_wiki").attr("formaction", form_action); 
     118    $("#submit_wiki").attr("formaction", form_action); 
    117119  }); 
    118120