Changeset 516 for trunk/templates


Ignore:
Timestamp:
05/24/13 16:58:49 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Tune up location/view handling on zone add. See #10.

Domains and revzones added with a location specified will actually use
that location. Documentation note: Zones specifying a location on
creation will only be visible to that location, because the SOA record
will be created with that location. A zone should be created with no
location set if records must be visible across multiple locations, or
publicly.

Location:
trunk/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/newdomain.tmpl

    r493 r516  
    3232<TMPL_IF location_view><TMPL_IF record_locchg>
    3333        <tr class="datalinelight">
    34                 <td>Default location/view:</td>
     34                <td>Location/view:</td>
    3535                <td><select name="defloc">
    3636<TMPL_LOOP name=loclist>                <option value="<TMPL_VAR NAME=loc>"<TMPL_IF selected> selected="selected"</TMPL_IF>><TMPL_VAR NAME=locname></option>
  • trunk/templates/newrevzone.tmpl

    r493 r516  
    2626        </tr>
    2727        <tr class="datalinelight">
    28                 <td>Default location/view:</td>
    29                 <td align="left">
    30                         <select name="location">
    31                         <TMPL_LOOP loclist>
    32                         <option value="<TMPL_VAR NAME=loc>"<TMPL_IF selected> selected</TMPL_IF>><TMPL_VAR NAME=locname></option>
    33                         </TMPL_LOOP>
    34                         </select>
    35                 </td>
    36         </tr>
    37         <tr class="datalinelight">
    3828                <td>Add reverse zone to group:</td>
    3929                <td><select name="group">
     
    4535                <td>Make reverse zone active on next DNS propagation</td><td><input type="checkbox" name="makeactive" checked="checked" /></td>
    4636        </tr>
     37<TMPL_IF location_view><TMPL_IF record_locchg>
     38        <tr class="datalinelight">
     39                <td>Location/view:</td>
     40                <td align="left">
     41                        <select name="location">
     42                        <TMPL_LOOP loclist>
     43                        <option value="<TMPL_VAR NAME=loc>"<TMPL_IF selected> selected="selected"</TMPL_IF>><TMPL_VAR NAME=locname></option>
     44                        </TMPL_LOOP>
     45                        </select>
     46                </td>
     47        </tr>
     48</TMPL_IF></TMPL_IF>
    4749        <tr><td colspan="2" class="tblsubmit"><input type="submit" value="Add reverse zone" /></td></tr>
    4850    </table>
Note: See TracChangeset for help on using the changeset viewer.