<%= javascript_include_tag "camaleon_cms/admin/login_manifest" %>

<%= raw t('camaleon_cms.admin.login.welcome_login_html', default: 'Please Login') %>

<%= render "layouts/camaleon_cms/admin/flash_messages" %> <%= form_for(@user, as: "user", :html => { method: "post", role: "form", id:"login_user", class: "form-horizontal" }, :url => cama_admin_login_path ) do |f| %>
<%= f.text_field :username, :class => "form-control", :placeholder => t("camaleon_cms.admin.login.username", default: 'Username') %>
<%= f.password_field :password, :class => "form-control", :placeholder => t("camaleon_cms.admin.login.password", default: 'Password') %>
<%= raw cama_captcha_tags_if_under_attack("login") %>

<%= raw cama_content_before_draw %> <%= r = {html: "", f: f}; hooks_run("user_login_form", r); raw(r[:html]); %>
<% if current_site.get_option('permit_create_account', false) %>
<%= t('camaleon_cms.admin.login.do_not_have_account_yet') %>
<%= t('camaleon_cms.admin.login.create_account', default: 'Create Account') %>
<% end %>
<% end %>