Changeset 4073cae3c3532761ff04d651f33b3ec7c6436314


Ignore:
Timestamp:
13.05.2013 10:16:01 (6 years ago)
Author:
Stanislaw Klekot <dozzie@…>
Branches:
b66903eafbcb1d49112014abc82c8bf683413db0
Children:
bfdbd17715d099c2e913a6139c1c38f3db1fecbc
Parents:
b5bbc1139f2490b82e2d4c754d8aeb6aefc86835
git-author:
Stanislaw Klekot <dozzie@…> (13.05.2013 10:16:01)
git-committer:
Stanislaw Klekot <dozzie@…> (13.05.2013 10:16:01)
Message:

Added pre-selecting options if possible in editing macros.

Location:
templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • templates/create_macro.html

    rdb7f89 r4073ca  
    3636        <select name="result"> 
    3737{% for result in supported_result_types %} 
     38{%   if result == macro.result %} 
     39           <option value="{{ result }}" selected="selected">{{ result }}</option> 
     40{%   else %} 
    3841           <option value="{{ result }}">{{ result }}</option> 
     42{%   endif %} 
    3943{% endfor %} 
    4044        </select> 
     
    5458        <select name="protocol"> 
    5559{% for proto in supported_protocols %} 
     60{%   if proto == macro.protocol %} 
     61           <option value="{{ proto }}" selected="selected">{{ proto }}</option> 
     62{%   else %} 
    5663           <option value="{{ proto }}">{{ proto }}</option> 
     64{%   endif %} 
    5765{% endfor %} 
    5866        </select> 
  • templates/edit_macro.html

    rdb7f89 r4073ca  
    3636        <select name="result"> 
    3737{% for result in supported_result_types %} 
     38{%   if result == macro.result %} 
     39           <option value="{{ result }}" selected="selected">{{ result }}</option> 
     40{%   else %} 
    3841           <option value="{{ result }}">{{ result }}</option> 
     42{%   endif %} 
    3943{% endfor %} 
    4044        </select> 
     
    5458        <select name="protocol"> 
    5559{% for proto in supported_protocols %} 
     60{%   if proto == macro.protocol %} 
     61           <option value="{{ proto }}" selected="selected">{{ proto }}</option> 
     62{%   else %} 
    5663           <option value="{{ proto }}">{{ proto }}</option> 
     64{%   endif %} 
    5765{% endfor %} 
    5866        </select> 
Note: See TracChangeset for help on using the changeset viewer.