diff options
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/index/index.html.erb | 6 | ||||
-rw-r--r-- | app/views/admin/templates/_form.html.erb | 35 | ||||
-rw-r--r-- | app/views/admin/templates/edit.html.erb | 8 | ||||
-rw-r--r-- | app/views/admin/templates/index.html.erb | 23 | ||||
-rw-r--r-- | app/views/admin/templates/new.html.erb | 7 | ||||
-rw-r--r-- | app/views/admin/templates/show.html.erb | 26 | ||||
-rw-r--r-- | app/views/admin/users/_user.html.erb | 9 | ||||
-rw-r--r-- | app/views/admin/users/create.html.erb | 2 | ||||
-rw-r--r-- | app/views/admin/users/destroy.html.erb | 2 | ||||
-rw-r--r-- | app/views/admin/users/edit.html.erb | 50 | ||||
-rw-r--r-- | app/views/admin/users/index.html.erb | 19 | ||||
-rw-r--r-- | app/views/admin/users/new.html.erb | 47 | ||||
-rw-r--r-- | app/views/admin/users/show.html.erb | 34 | ||||
-rw-r--r-- | app/views/admin/users/update.html.erb | 2 |
14 files changed, 0 insertions, 270 deletions
diff --git a/app/views/admin/index/index.html.erb b/app/views/admin/index/index.html.erb deleted file mode 100644 index 2313d16..0000000 --- a/app/views/admin/index/index.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<h1>GLSAMaker Administration</h1> - -<ul> - <li><%= link_to 'User Management', admin_users_path %></li> - <li><%= link_to 'Template Management', admin_templates_path %></li> -</ul>
\ No newline at end of file diff --git a/app/views/admin/templates/_form.html.erb b/app/views/admin/templates/_form.html.erb deleted file mode 100644 index 9984673..0000000 --- a/app/views/admin/templates/_form.html.erb +++ /dev/null @@ -1,35 +0,0 @@ -<%= form_for([:admin, @template]) do |f| %> - <% if @template.errors.any? %> - <div id="error_explanation"> - <h2><%= pluralize(@template.errors.count, "error") %> prohibited this template from being saved:</h2> - - <ul> - <% @template.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - - <table> - <tr> - <th><%= f.label :name %></th> - <td><%= f.text_field :name %></td> - </tr> - <tr> - <th><%= f.label :text %></th> - <td><%= f.text_area :text, :rows => 10 %></td> - </tr> - <tr> - <th><%= f.label :target, 'Target Field' %></th> - <td><%= select('template', 'target', target_list) %></td> - </tr> - <tr> - <th><%= f.label :enabled %></th> - <td><%= f.check_box :enabled %></td> - </tr> - </table> - <div class="actions"> - <%= f.submit %> - </div> -<% end %> diff --git a/app/views/admin/templates/edit.html.erb b/app/views/admin/templates/edit.html.erb deleted file mode 100644 index 3c72272..0000000 --- a/app/views/admin/templates/edit.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -<div class="box w40em"> - <h2>Edit user</h2> - - <%= render 'form' %> -</div> - -<%= link_to 'Show', @admin_template %> | -<%= link_to 'Back', admin_templates_path %>
\ No newline at end of file diff --git a/app/views/admin/templates/index.html.erb b/app/views/admin/templates/index.html.erb deleted file mode 100644 index 32edfbb..0000000 --- a/app/views/admin/templates/index.html.erb +++ /dev/null @@ -1,23 +0,0 @@ -<h1>Templates</h1> - -<table class="glsamaker-table"> - <tr> - <th>Name</th> - <th>Text</th> - <th>Field</th> - <th>Enabled</th> - </tr> - -<% @templates.each do |admin_template| %> - <tr> - <td><%= link_to admin_template.name, admin_template_path(admin_template) %></td> - <td><tt><%= admin_template.text %></tt></td> - <td><%= admin_template.target %></td> - <td><%= admin_template.enabled %></td> - </tr> -<% end %> -</table> - -<br /> - -<%= link_to 'New Template', new_admin_template_path %> diff --git a/app/views/admin/templates/new.html.erb b/app/views/admin/templates/new.html.erb deleted file mode 100644 index 78e25fb..0000000 --- a/app/views/admin/templates/new.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -<div class="box w40em"> - <h2>New Template</h2> - - <%= render 'form' %> -</div> - -<%= link_to 'Back', admin_templates_path %>
\ No newline at end of file diff --git a/app/views/admin/templates/show.html.erb b/app/views/admin/templates/show.html.erb deleted file mode 100644 index e406071..0000000 --- a/app/views/admin/templates/show.html.erb +++ /dev/null @@ -1,26 +0,0 @@ -<div class="box"> - <h2><%= @template.name %></h2> - - <table> - <tr> - <th>Name:</th> - <td><%= @template.name %></td> - </tr> - <tr> - <th>Text:</th> - <td><pre><%= @template.text %></pre></td> - </tr> - <tr> - <th>Field:</th> - <td><%= @template.target.titleize %></td> - </tr> - <tr> - <th>Enabled:</th> - <td><%= @template.enabled %></td> - </tr> - </table> -</div> - -<%= link_to 'Edit', edit_admin_template_path(@template) %> | -<%= link_to 'Delete', admin_template_path(@template), :confirm => 'Are you sure?', :method => :delete %> | -<%= link_to 'Back', admin_templates_path %>
\ No newline at end of file diff --git a/app/views/admin/users/_user.html.erb b/app/views/admin/users/_user.html.erb deleted file mode 100644 index 3461591..0000000 --- a/app/views/admin/users/_user.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -<tr class="<%= cycle 'even', 'odd' %>"> - <td><%= user.id %></td> - <td><strong><%= user.login %></strong></td> - <td><%= link_to user.name, admin_user_path(user) %></td> - <td><%= user.email %></td> - <td><%= access_string user.access %></td> - <td><%= user.disabled %></td> - <td><%= user.jefe %></td> -</tr> diff --git a/app/views/admin/users/create.html.erb b/app/views/admin/users/create.html.erb deleted file mode 100644 index 34cd1ba..0000000 --- a/app/views/admin/users/create.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -<h1>Admin::User#create</h1> -<p>Find me in app/views/admin/user/create.html.erb</p> diff --git a/app/views/admin/users/destroy.html.erb b/app/views/admin/users/destroy.html.erb deleted file mode 100644 index d77622c..0000000 --- a/app/views/admin/users/destroy.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -<h1>Admin::User#destroy</h1> -<p>Find me in app/views/admin/user/destroy.html.erb</p> diff --git a/app/views/admin/users/edit.html.erb b/app/views/admin/users/edit.html.erb deleted file mode 100644 index aa5c7b5..0000000 --- a/app/views/admin/users/edit.html.erb +++ /dev/null @@ -1,50 +0,0 @@ -<div class="box w40em"> - <h2>Edit user</h2> - <%= form_for([:admin, @user]) do |f| %> - <% if @user.errors.any? %> - <div id="errorExplanation" class="errorExplanation"> - <h2><%= pluralize(@user.errors.count, "error") %> prohibited this record from being saved:</h2> - <ul> - <% @user.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - - <table> - <tr> - <th>ID</th> - <td><%= @user.id %></td> - </tr> - <tr> - <th>Login</th> - <td><%= f.text_field :login %></td> - </tr> - <tr> - <th>Name</th> - <td><%= f.text_field :name %></td> - </tr> - <tr> - <th>Email</th> - <td><%= f.text_field :email %></td> - </tr> - <tr> - <th>Access Level</th> - <td><%= select('user', 'access', access_list) %></td> - </tr> - <tr> - <th>Disabled flag</th> - <td><%= f.check_box :disabled %></td> - </tr> - <tr> - <th>Admin flag</th> - <td><%= f.check_box :jefe %></td> - </tr> -</table> -<p> -<%= f.submit 'Update' %> -</p> -</div> -<% end %> -<%= link_to 'Back', admin_user_path(@user) %>
\ No newline at end of file diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb deleted file mode 100644 index 97bfed7..0000000 --- a/app/views/admin/users/index.html.erb +++ /dev/null @@ -1,19 +0,0 @@ -<h1>Users</h1> - -<table class="glsamaker-table"> -<tr align="left"> - <th>ID</th> - <th>Login</th> - <th>Name</th> - <th>Email</th> - <th>Access Level</th> - <th>Disabled</th> - <th>Administrator</th> -</tr> - -<%= render :partial => "user", :collection => @users, :as => :user %> -</table> - -<p> - <%= link_to 'New User', new_admin_user_path(@user) %> -</p>
\ No newline at end of file diff --git a/app/views/admin/users/new.html.erb b/app/views/admin/users/new.html.erb deleted file mode 100644 index 276cc61..0000000 --- a/app/views/admin/users/new.html.erb +++ /dev/null @@ -1,47 +0,0 @@ -<div class="box w40em"> - <h2>New user</h2> - - <%= form_for([:admin, @user]) do |f| %> - <% if @user.errors.any? %> - <div id="errorExplanation" class="errorExplanation"> - <h2><%= pluralize(@user.errors.count, "error") %> prohibited this record from being saved:</h2> - <ul> - <% @user.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - - <table> - <tr> - <th>Login</th> - <td><%= f.text_field :login %></td> - </tr> - <tr> - <th>Name</th> - <td><%= f.text_field :name %></td> - </tr> - <tr> - <th>Email</th> - <td><%= f.text_field :email %></td> - </tr> - <tr> - <th>Access Level</th> - <td><%= select('user', 'access', access_list) %></td> - </tr> - <tr> - <th>Disabled flag</th> - <td><%= f.check_box :disabled %></td> - </tr> - <tr> - <th>Admin flag</th> - <td><%= f.check_box :jefe %></td> - </tr> -</table> -<p> -<%= f.submit 'Update' %> -</p> -</div> -<% end %> -<%= link_to 'Back', admin_users_path %>
\ No newline at end of file diff --git a/app/views/admin/users/show.html.erb b/app/views/admin/users/show.html.erb deleted file mode 100644 index c009610..0000000 --- a/app/views/admin/users/show.html.erb +++ /dev/null @@ -1,34 +0,0 @@ -<div class="box w40em"> - <h2><%= @user.login %></h2> - - <table> - <tr> - <th>ID</th> - <td><%= @user.id %></td> - </tr> - <tr> - <th>Name</th> - <td><%= @user.name %></td> - </tr> - <tr> - <th>Email</th> - <td><%= mail_to @user.email %></td> - </tr> - <tr> - <th>Access Level</th> - <td><%= access_string @user.access %></td> - </tr> - <tr> - <th>Disabled flag</th> - <td><%= @user.disabled %></td> - </tr> - <tr> - <th>Admin flag</th> - <td><%= @user.jefe %></td> - </tr> -</table> -</div> - -<%= link_to 'Edit', edit_admin_user_path(@user) %> | -<%= link_to 'Delete', admin_user_path(@user), :confirm => 'Are you sure?', :method => :delete %> | -<%= link_to 'Back', admin_users_path %>
\ No newline at end of file diff --git a/app/views/admin/users/update.html.erb b/app/views/admin/users/update.html.erb deleted file mode 100644 index 90396aa..0000000 --- a/app/views/admin/users/update.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -<h1>Admin::User#update</h1> -<p>Find me in app/views/admin/user/update.html.erb</p> |