Sha256: 6767b0782afd1bf7df89018a09a6b02d30ace95605b3d991be21364058086234
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
<%= form.hidden_field :version, :value => LucyCMS.config.version %> <%= form.text_field :label, :label => 'Title'%> <%= form.text_field :hostname, :label => 'Hostname<br>(www.example.com)' %> <div class='form_element radio_button_element '> <div class='site_label'><label for="cms_site_authentication">Authentication</label></div> <div class='site_value'> <input id="cms_site_authentication_internal_database" name="cms_site[authentication]" type="radio" value="Internal" <%if @cms_site.authentication != 'ldap'%>checked<%end%> onclick="$('#ldap_fields').hide();" > Internal Database <input id="auth_ldap" name="cms_site[authentication]" type="radio" value="LDAP" <%if @cms_site.authentication == 'LDAP'%>checked<%end%> onclick="$('#ldap_fields').show();"> LDAP </div> </div> <div id = "ldap_fields" <%if @cms_site.authentication != 'LDAP'%> style = "display:none;"<%end%>> <%= form.text_field :ldap_hostname, :label => 'LDAP Hostname<br>(ldap.example.com)' %> <%= form.text_field :ldap_base_DN, :label => 'LDAP Base DN<br>(dc=example,dc=com)' %> <%= form.text_field :ldap_uid, :label => 'LDAP User Id Attribute<br>(uid)' %> </div>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lucy_cms-0.0.3 | app/views/cms_admin/sites/_form.html.erb |
lucy_cms-0.0.2 | app/views/cms_admin/sites/_form.html.erb |
lucy_cms-0.0.1 | app/views/cms_admin/sites/_form.html.erb |