Sha256: be997169abb7ddd3f5c6a7e0cdff5e25c6c4387de5cedcc072a658f87390937f

Contents?: true

Size: 1.65 KB

Versions: 7

Compression:

Stored size: 1.65 KB

Contents

<%= form_for @admin_user_session, url: casein_admin_user_session_path do |f| %>
	<% if @admin_user_session.errors.any? %>
		<div id="error_messages" class="alert alert-danger">
			<% @admin_user_session.errors.keys.each do |key| %>
				<%= (key.to_s.humanize + " ") unless key == :base %>
				<%=  @admin_user_session.errors[key].first %>
			<% end %>
		</div>
	<% end %>

	<% if flash[:warning] %>
      <div id="error" class="alert alert-danger">
        <%= flash[:warning] %>
      </div>
    <% end %>
    <% if flash[:notice] %>
      <div id="notice" class="alert alert-success">
        <%= flash[:notice] %>
      </div>
    <% end %>
	
	<div class="form-group">
		<%= f.text_field :login, placeholder: "Username", class: "form-control input-lg" %>
	</div>
	<div class="form-group">
		<%= f.password_field :password, placeholder: "Password", class: "form-control input-lg" %>
	</div>

	<div class="form-group">
		<div class="checkbox-inline">
		  <label>
		    <%= f.check_box :remember_me %> Remember me
		  </label>
		</div>
	</div>

	<div class="form-group">
		<%= f.submit "Sign in", class: "btn btn-success btn-lg btn-block" %>
	</div>

	<div class="form-group">
		<input type="button" value="Forgotten password?" class="btn btn-link" onclick="toggleDiv('recover');" />
	</div>
	
<% end %>

<%= form_tag casein_password_reset_url do %>
	<div id="recover" style="display:none;">
		<div class="form-group">
			<%= text_field_tag :recover_email, params[:recover_email], placeholder: "Your email address", class: "form-control input-lg" %>
		</div>
		<div class="form-group">
			<%= submit_tag "Reset password", class: "btn btn-primary btn-lg btn-block" %>
		</div>
	</div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
casein-5.5.1.0 app/views/casein/admin_user_sessions/new.html.erb
casein-5.5.0.0 app/views/casein/admin_user_sessions/new.html.erb
casein-5.4.0.0 app/views/casein/admin_user_sessions/new.html.erb
casein-5.3.2.0 app/views/casein/admin_user_sessions/new.html.erb
casein-5.3.1.0 app/views/casein/admin_user_sessions/new.html.erb
casein-5.3.0.0 app/views/casein/admin_user_sessions/new.html.erb
casein-5.2.0.0 app/views/casein/admin_user_sessions/new.html.erb