Permalink
Browse files

style added :)

  • Loading branch information...
1 parent b5aac1e commit a1666aa1dbb44009b37352f719e009afe6d73870 @marziolek committed Jan 31, 2012
@@ -0,0 +1,179 @@
+
+body {
+ background-color: #EEE;
+ color: #333;
+ font-family: helvetica, verdana, arial, sans-serif;
+ font-size: 12px;
+ margin:0;
+}
+
+#content {
+ width:960px;
+ position: relative;
+ margin: 0 auto;
+ min-height: 100%;
+ height: auto !important;
+ height: 100%;
+ z-index:2;
+}
+
+footer {
+ position:relative;
+ height:80px;
+ width:100%;
+ background-color: #EEE;
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#EEE), to(#CCC));
+ background-image: -webkit-linear-gradient(top, #EEE, #CCC);
+ background-image: -moz-linear-gradient(top, #EEE, #CCC);
+ background-image: -ms-linear-gradient(top, #EEE, #CCC);
+ background-image: -o-linear-gradient(top, #EEE, #CCC);
+ z-index:-2;
+}
+
+table {
+ border-spacing:0;
+ border-collapse:collapse;
+ border-image:none;
+}
+
+th {
+ text-align:center;
+ padding:5px;
+}
+
+td {
+ line-height: 18px;
+ text-align:center;
+ border:1px solid #DDD;
+ margin:0;
+ padding:5px;
+}
+
+td > a {
+
+}
+
+pre {
+ background-color: #eee;
+ padding: 10px;
+ font-size: 11px; }
+
+a {
+ color:#333;
+ text-decoration:none;
+}
+
+a:hover {
+ color:darkorange;
+ text-decoration:underline;
+}
+
+div {
+ &.field, &.actions {
+ margin-bottom: 10px; } }
+
+#notice {
+ color: green; }
+
+.field_with_errors {
+ padding: 2px;
+ background-color: red;
+ display: table; }
+
+#error_explanation {
+ width: 450px;
+ border: 2px solid red;
+ padding: 7px;
+ padding-bottom: 0;
+ margin-bottom: 20px;
+ background-color: #f0f0f0;
+ h2 {
+ text-align: left;
+ font-weight: bold;
+ padding: 5px 5px 5px 15px;
+ font-size: 12px;
+ margin: -7px;
+ margin-bottom: 0px;
+ background-color: #c00;
+ color: #fff; }
+ ul li {
+ font-size: 12px;
+ list-style: square; }
+}
+
+#top {
+ width:100%;
+ height:50px;
+ background-color:#222;
+ position:absolute;
+ top:0;
+ z-index:-2;
+}
+
+#menu a {
+ font-size:16px;
+ font-weight:bold;
+ color:#EEE;
+ text-transform:uppercase;
+ padding:22px 10px;
+ text-decoration:none;
+ line-height:50px;
+}
+
+#menu a:hover {
+ text-decoration:none;
+ color:#000;
+ background-color:orange;
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(orange), to(darkorange));
+ background-image: -webkit-linear-gradient(top, orange, darkorange);
+ background-image: -moz-linear-gradient(top, orange, darkorange);
+ background-image: -ms-linear-gradient(top, orange, darkorange);
+ background-image: -o-linear-gradient(top, orange, darkorange);
+ border-bottom-left-radius:6px;
+ border-bottom-right-radius:6px;
+}
+
+#menu {
+ background-color:#222;
+ height:50px;
+}
+
+a#menu_highlighted {
+ text-decoration:none;
+ color:#000;
+ background-color:orange;
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(orange), to(darkorange));
+ background-image: -webkit-linear-gradient(top, orange, darkorange);
+ background-image: -moz-linear-gradient(top, orange, darkorange);
+ background-image: -ms-linear-gradient(top, orange, darkorange);
+ background-image: -o-linear-gradient(top, orange, darkorange);
+
+ border-bottom-left-radius:6px;
+ border-bottom-right-radius:6px;
+}
+
+a#wyloguj {
+ clear:both;
+ float:right;
+ padding:0;
+ line-height:20px;
+ text-transform:none;
+ font-size:12px;
+ font-weight:normal;
+ margin-top:2px;
+}
+
+a#wyloguj:hover {
+ clear:both;
+ background-color:#222;
+ background-image:none;
+ color:darkorange;
+ text-decoration:underline;
+}
+
+
+h1 {
+ border-bottom:1px solid #DDD;
+ padding-left:40px;
+}
+
@@ -1,3 +1,4 @@
+#encoding: utf-8
class ApplicationController < ActionController::Base
protect_from_forgery
helper_method :current_user_session, :current_user
@@ -1,3 +1,4 @@
+#encoding: utf-8
class ApplicationsController < ApplicationController
before_filter :authenticate
# GET /applications
@@ -1,3 +1,4 @@
+#encoding: utf-8
class ClientsApplicationsController < ApplicationController
before_filter :authenticate
# GET /clients_applications
@@ -1,3 +1,4 @@
+#encoding: utf-8
class ClientsController < ApplicationController
before_filter :authenticate
# GET /clients
@@ -1,3 +1,4 @@
+#encoding: utf-8
class ContactPeopleController < ApplicationController
before_filter :authenticate
# GET /contact_people
Binary file not shown.
@@ -1,6 +1,6 @@
-<h1>Editing application</h1>
+<h1>Edytuj aplikację</h1>
<%= render 'form' %>
-<%= link_to 'Show', @application %> |
-<%= link_to 'Back', applications_path %>
+<%= link_to 'Pokaż', @application %> |
+<%= link_to 'Wstecz', applications_path %>
@@ -1,4 +1,4 @@
-<h1>Listing applications</h1>
+<h1>Aplikacje</h1>
<table>
<tr>
@@ -15,13 +15,13 @@
<td><%= application.name %></td>
<td><%= application.description %></td>
<td><%= application.version %></td>
- <td><%= link_to 'Show', application %></td>
- <td><%= link_to 'Edit', edit_application_path(application) %></td>
- <td><%= link_to 'Destroy', application, confirm: 'Are you sure?', method: :delete %></td>
+ <th><%= link_to 'Pokaż', application %></th>
+ <th><%= link_to 'Edytuj', edit_application_path(application) %></th>
+ <th><%= link_to 'Usuń', application, confirm: 'Jesteś pewien?', method: :delete %></th>
</tr>
<% end %>
</table>
<br />
-<%= link_to 'New Application', new_application_path %>
+<%= link_to 'Dodaj nową aplikację', new_application_path %>
@@ -1,5 +1,5 @@
-<h1>New application</h1>
+<h1>Dodaj nową aplikację</h1>
<%= render 'form' %>
-<%= link_to 'Back', applications_path %>
+<%= link_to 'Wstecz', applications_path %>
@@ -1,9 +1,6 @@
<p id="notice"><%= notice %></p>
-<p>
- <b>Name:</b>
- <%= @application.name %>
-</p>
+<h2><%= @application.name %></h2>
<p>
<b>Description:</b>
@@ -16,5 +13,5 @@
</p>
-<%= link_to 'Edit', edit_application_path(@application) %> |
-<%= link_to 'Back', applications_path %>
+<%= link_to 'Edytuj', edit_application_path(@application) %> |
+<%= link_to 'Wstecz', applications_path %>
@@ -1,6 +1,6 @@
-<h1>Editing client</h1>
+<h1>Edytuj klienta</h1>
<%= render 'form' %>
-<%= link_to 'Show', @client %> |
-<%= link_to 'Back', clients_path %>
+<%= link_to 'Pokaż', @client %> |
+<%= link_to 'Wstecz', clients_path %>
@@ -1,4 +1,4 @@
-<h1>Listing clients</h1>
+<h1>Klienci</h1>
<table>
<tr>
@@ -19,13 +19,13 @@
<td><%= client.city %></td>
<td><%= client.postal_code %></td>
<td><%= client.regon %></td>
- <td><%= link_to 'Show', client %></td>
- <td><%= link_to 'Edit', edit_client_path(client) %></td>
- <td><%= link_to 'Destroy', client, confirm: 'Are you sure?', method: :delete %></td>
+ <th><%= link_to 'Pokaż', client %></th>
+ <th><%= link_to 'Edytuj', edit_client_path(client) %></th>
+ <th><%= link_to 'Usuń', client, confirm: 'Jesteś pewien?', method: :delete %></th>
</tr>
<% end %>
</table>
<br />
-<%= link_to 'New Client', new_client_path %>
+<%= link_to 'Dodaj nowego klienta', new_client_path %>
@@ -1,5 +1,5 @@
-<h1>New client</h1>
+<h1>Dodaj nowego klienta</h1>
<%= render 'form' %>
-<%= link_to 'Back', clients_path %>
+<%= link_to 'Wstecz', clients_path %>
@@ -1,9 +1,6 @@
<p id="notice"><%= notice %></p>
-<p>
- <b>Name:</b>
- <%= @client.name %>
-</p>
+<h2><%= @client.name %></h2>
<p>
<b>Address:</b>
@@ -26,5 +23,5 @@
</p>
-<%= link_to 'Edit', edit_client_path(@client) %> |
-<%= link_to 'Back', clients_path %>
+<%= link_to 'Edytuj', edit_client_path(@client) %> |
+<%= link_to 'Wstecz', clients_path %>
@@ -1,6 +1,6 @@
-<h1>Editing clients_application</h1>
+<h1>Edytuj aplikację klienta</h1>
<%= render 'form' %>
-<%= link_to 'Show', @clients_application %> |
-<%= link_to 'Back', clients_applications_path %>
+<%= link_to 'Pokaż', @clients_application %> |
+<%= link_to 'Wstecz', clients_applications_path %>
@@ -1,4 +1,4 @@
-<h1>Listing clients_applications</h1>
+<h1>Aplikacje klientów</h1>
<table>
<tr>
@@ -19,13 +19,13 @@
<td><%= clients_application.license_type %></td>
<td><%= clients_application.number_of_computers %></td>
<td><%= clients_application.product_key %></td>
- <td><%= link_to 'Show', clients_application %></td>
- <td><%= link_to 'Edit', edit_clients_application_path(clients_application) %></td>
- <td><%= link_to 'Destroy', clients_application, confirm: 'Are you sure?', method: :delete %></td>
+ <th><%= link_to 'Pokaż', clients_application %></th>
+ <th><%= link_to 'Edytuj', edit_clients_application_path(clients_application) %></th>
+ <th><%= link_to 'Usuń', clients_application, confirm: 'Jesteś pewien?', method: :delete %></th>
</tr>
<% end %>
</table>
<br />
-<%= link_to 'New Clients application', new_clients_application_path %>
+<%= link_to 'Dodaj aplikację klienta', new_clients_application_path %>
@@ -1,5 +1,5 @@
-<h1>New clients_application</h1>
+<h1>Dodaj aplikację klienta</h1>
<%= render 'form' %>
-<%= link_to 'Back', clients_applications_path %>
+<%= link_to 'Wstecz', clients_applications_path %>
@@ -26,5 +26,5 @@
</p>
-<%= link_to 'Edit', edit_clients_application_path(@clients_application) %> |
-<%= link_to 'Back', clients_applications_path %>
+<%= link_to 'Edytuj', edit_clients_application_path(@clients_application) %> |
+<%= link_to 'Wstecz', clients_applications_path %>
@@ -1,6 +1,6 @@
-<h1>Editing contact_person</h1>
+<h1>Edytuj osobę kontaktową</h1>
<%= render 'form' %>
-<%= link_to 'Show', @contact_person %> |
-<%= link_to 'Back', contact_people_path %>
+<%= link_to 'Pokaż', @contact_person %> |
+<%= link_to 'Wstecz', contact_people_path %>
Oops, something went wrong. Retry.

0 comments on commit a1666aa

Please sign in to comment.