Sha256: 7f8cec1bae1382fa343893af47b9d0841eb081ebfca71a970a490c317770377d
Contents?: true
Size: 1.16 KB
Versions: 13
Compression:
Stored size: 1.16 KB
Contents
<% if !component['options'].empty? && !plugin_has_required_file_option?( component['options'] )%> <h5>Options</h5> <% component['options'].each do |opt| %> <p class="options"> <%=escape(opt['desc'])%> <% if opt['required'] %> <strong>*</strong> <%end%> <input name="options[<%=component['plug_name']%>][<%=opt['name']%>]" <% if opt['type'] == 'path' %> disabled="disabled" type="file" value="<%=opt['default']%>" <% elsif opt['type'] == 'bool' %> type="checkbox" <% if session_options[component['plug_name']] && !(val = session_options[component['plug_name']][opt['name']]).nil? %> <%=val ? 'checked="checked"' : '' %> <% elsif opt['default'] %> checked="checked" <%end%> <% else %> value="<%=( session_options[component['plug_name']] && (val = session_options[component['plug_name']][opt['name']]) ) ? val : opt['default']%>" <%end%> /> </p> <%end%> <%end%>
Version data entries
13 entries across 13 versions & 1 rubygems