Merge branch 'master' of ssh://51.254.143.84:9319/home/git/invoice_keeper
This commit is contained in:
commit
2e6dc69b26
|
|
@ -2,8 +2,20 @@ class ApplicationController < ActionController::Base
|
||||||
protect_from_forgery with: :exception
|
protect_from_forgery with: :exception
|
||||||
before_action :authenticate_user!
|
before_action :authenticate_user!
|
||||||
before_action :set_locale
|
before_action :set_locale
|
||||||
|
layout :layout_by_resource
|
||||||
|
|
||||||
def set_locale
|
def set_locale
|
||||||
I18n.locale = params[:lang] || I18n.default_locale
|
I18n.locale = params[:lang] || I18n.default_locale
|
||||||
end
|
end
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def layout_by_resource
|
||||||
|
if devise_controller? && resource_name == :user && action_name == "new"
|
||||||
|
"devise"
|
||||||
|
else
|
||||||
|
"application"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
class WelcomeController < ApplicationController
|
class WelcomeController < ApplicationController
|
||||||
def index
|
def index
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
module ApplicationHelper
|
module ApplicationHelper
|
||||||
|
|
||||||
|
# define left menu
|
||||||
def menu
|
def menu
|
||||||
ret = ""
|
ret = ""
|
||||||
ret += create_menu_li("glyphicon glyphicon-home","Dashboard","/","welcome")
|
ret += create_menu_li("glyphicon glyphicon-home","Dashboard","/","welcome")
|
||||||
|
|
@ -11,7 +11,7 @@ module ApplicationHelper
|
||||||
return raw(ret)
|
return raw(ret)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# create left menu <li> element
|
||||||
def create_menu_li(icon, name, link, controller_nmn)
|
def create_menu_li(icon, name, link, controller_nmn)
|
||||||
if controller_name == controller_nmn
|
if controller_name == controller_nmn
|
||||||
active = " class=\"current\""
|
active = " class=\"current\""
|
||||||
|
|
@ -22,8 +22,8 @@ module ApplicationHelper
|
||||||
"<li#{active}><a href=\"#{link}\">#{icn}#{name}</a></li>"
|
"<li#{active}><a href=\"#{link}\">#{icn}#{name}</a></li>"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# generate errors html
|
||||||
def errors_to_html(errors)
|
def errors_to_html(errors )
|
||||||
ret = '<div class="row"><div class="col-lg-12 col-md-12 panel-danger"><div class="content-box-header panel-heading"><div class="panel-title">'
|
ret = '<div class="row"><div class="col-lg-12 col-md-12 panel-danger"><div class="content-box-header panel-heading"><div class="panel-title">'
|
||||||
ret += I18n.t("activerecord.errors.messages.record_invalid", errors: errors.count)
|
ret += I18n.t("activerecord.errors.messages.record_invalid", errors: errors.count)
|
||||||
ret += '</div></div><div class="content-box-large box-with-header" style="background:#f9dddd"><ul>'
|
ret += '</div></div><div class="content-box-large box-with-header" style="background:#f9dddd"><ul>'
|
||||||
|
|
@ -34,6 +34,7 @@ module ApplicationHelper
|
||||||
ret
|
ret
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Change decimals to words in PLN
|
||||||
def decimal_to_word(dec)
|
def decimal_to_word(dec)
|
||||||
singles = ["", " #{I18n.t('numbers.one')}", " #{I18n.t('numbers.two')}", " #{I18n.t('numbers.three')}", " #{I18n.t('numbers.four')}",
|
singles = ["", " #{I18n.t('numbers.one')}", " #{I18n.t('numbers.two')}", " #{I18n.t('numbers.three')}", " #{I18n.t('numbers.four')}",
|
||||||
" #{I18n.t('numbers.five')}", " #{I18n.t('numbers.six')}", " #{I18n.t('numbers.seven')}", " #{I18n.t('numbers.eight')}", " #{I18n.t('numbers.nine')}"]
|
" #{I18n.t('numbers.five')}", " #{I18n.t('numbers.six')}", " #{I18n.t('numbers.seven')}", " #{I18n.t('numbers.eight')}", " #{I18n.t('numbers.nine')}"]
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
module DeviseHelper
|
||||||
|
def devise_error_messages!
|
||||||
|
return "" unless devise_error_messages?
|
||||||
|
|
||||||
|
messages = resource.errors.full_messages.map { |msg| content_tag(:li, msg) }.join
|
||||||
|
sentence = I18n.t("errors.messages.not_saved",
|
||||||
|
:count => resource.errors.count,
|
||||||
|
:resource => resource.class.model_name.human)
|
||||||
|
|
||||||
|
html = <<-HTML
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 col-md-12 panel-danger">
|
||||||
|
<div class="content-box-header panel-heading">
|
||||||
|
<div class="panel-title">
|
||||||
|
#{sentence}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content-box-large box-with-header" style="background:#f9dddd">
|
||||||
|
<ul>#{messages}</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
HTML
|
||||||
|
|
||||||
|
html.html_safe
|
||||||
|
end
|
||||||
|
|
||||||
|
def devise_error_messages?
|
||||||
|
!resource.errors.empty?
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
@ -1,43 +1,71 @@
|
||||||
<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
<div class="row">
|
||||||
|
<div class="col-lg-8 col-md-12 panel-info">
|
||||||
|
<div class="content-box-header panel-heading">
|
||||||
|
<div class="panel-title">Profil - zmiana hasła</div>
|
||||||
|
<div class="panel-options">
|
||||||
|
<%= link_to raw("<i class=\"glyphicon glyphicon-arrow-left text-success\"></i> " + I18n.t('back')), :back, title: I18n.t('back'), class: "text-primary" %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content-box-large box-with-header">
|
||||||
|
<div class="row">
|
||||||
|
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, class: "form-horizontal" }) do |f| %>
|
||||||
|
<%= devise_error_messages! %>
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :email, class: "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<%= f.text_field :email, class: "form-control", placeholder: 'Email', autofocus: true %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
||||||
|
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
||||||
|
<% end %>
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :password, class: "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<%= f.password_field :password, autocomplete: "off", class: "form-control", placeholder: 'Nowe Hasło' %>
|
||||||
|
<p class="note">
|
||||||
|
<% if @minimum_password_length %>
|
||||||
|
<strong><em>Minimialna ilość znakow: <%= @minimum_password_length %></em></strong>
|
||||||
|
<% end %>
|
||||||
|
<i>(Pozostaw puste jeśli nie chcesz zmieniać)</i>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :password_confirmation, class: "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control", placeholder: 'Powtorz Hasło' %>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :current_password, class: "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<%= f.password_field :current_password, autocomplete: "off", class: "form-control", placeholder: 'Aktualne Hasło' %>
|
||||||
|
<p class="note"><i>(Aktualne hasło jest potrzebne aby zatwierdzić zmiany)</i></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-sm-offset-2 col-sm-10">
|
||||||
|
<%= f.submit 'Zapisz', class: "btn btn-primary" %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
|
||||||
<%= devise_error_messages! %>
|
|
||||||
|
|
||||||
<div class="field">
|
|
||||||
<%= f.label :email %><br />
|
|
||||||
<%= f.email_field :email, autofocus: true %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
|
||||||
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<div class="field">
|
|
||||||
<%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
|
||||||
<%= f.password_field :password, autocomplete: "off" %>
|
|
||||||
<% if @minimum_password_length %>
|
|
||||||
<br />
|
|
||||||
<em><%= @minimum_password_length %> characters minimum</em>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-8 col-md-12 panel-danger">
|
||||||
|
<div class="content-box-header panel-heading">
|
||||||
|
<div class="panel-title">Profil - usunięcie konta</div>
|
||||||
|
</div>
|
||||||
|
<div class="content-box-large box-with-header">
|
||||||
|
<h4>Aplikacja Ci się znudziła?</h4>
|
||||||
|
<%= button_to "Anuluj konto", registration_path(resource_name), data: { confirm: "Czy na pewno chcesz anulować konto?" }, method: :delete, class: "btn btn-danger" %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="field">
|
|
||||||
<%= f.label :password_confirmation %><br />
|
|
||||||
<%= f.password_field :password_confirmation, autocomplete: "off" %>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="field">
|
|
||||||
<%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
|
||||||
<%= f.password_field :current_password, autocomplete: "off" %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="actions">
|
|
||||||
<%= f.submit "Update" %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<h3>Cancel my account</h3>
|
|
||||||
|
|
||||||
<p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p>
|
|
||||||
|
|
||||||
<%= link_to "Back", :back %>
|
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,26 @@
|
||||||
<h2>Sign up</h2>
|
|
||||||
|
|
||||||
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
|
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
|
||||||
<%= devise_error_messages! %>
|
<div class="col-md-4 col-md-offset-4">
|
||||||
|
<div class="login-wrapper">
|
||||||
<div class="field">
|
<div class="box">
|
||||||
<%= f.label :email %><br />
|
<div class="content-wrap">
|
||||||
<%= f.email_field :email, autofocus: true %>
|
<h6>Zarejestruj</h6>
|
||||||
</div>
|
<%= f.email_field :email, autofocus: true, class: 'form-control', placeholder: 'E-mail' %>
|
||||||
|
<%= f.password_field :password, autocomplete: "off", class: 'form-control', placeholder: 'Hasło' %>
|
||||||
<div class="field">
|
<p class="note">
|
||||||
<%= f.label :password %>
|
<% if @minimum_password_length %>
|
||||||
<% if @minimum_password_length %>
|
<strong><em>Minimialna ilość znakow: <%= @minimum_password_length %></em></strong>
|
||||||
<em>(<%= @minimum_password_length %> characters minimum)</em>
|
<% end %>
|
||||||
<% end %><br />
|
</p>
|
||||||
<%= f.password_field :password, autocomplete: "off" %>
|
<%= f.password_field :password_confirmation, autocomplete: "off", class: 'form-control', placeholder: 'Powtorz Hasło' %>
|
||||||
</div>
|
<div class="action">
|
||||||
|
<%= f.submit "Zarejestruj", class: "btn btn-primary signup" %>
|
||||||
<div class="field">
|
</div>
|
||||||
<%= f.label :password_confirmation %><br />
|
</div>
|
||||||
<%= f.password_field :password_confirmation, autocomplete: "off" %>
|
</div>
|
||||||
</div>
|
<div class="already">
|
||||||
|
<p>Posiadasz juz konto?</p>
|
||||||
<div class="actions">
|
<%= link_to t("log_in"), new_registration_path(resource_name) %>
|
||||||
<%= f.submit "Sign up" %>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "devise/shared/links" %>
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="already">
|
||||||
|
<p>Nie posiadasz jeszcze konta?</p>
|
||||||
|
<%= link_to t("sign_up"), new_registration_path(resource_name) %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
<%- if controller_name != 'sessions' %>
|
<%- if controller_name != 'sessions' %>
|
||||||
<%= link_to "Log in", new_session_path(resource_name) %><br />
|
<%= link_to t("log_in"), new_session_path(resource_name) %><br />
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
||||||
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
|
<%= link_to t("sign_up"), new_registration_path(resource_name) %><br />
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
|
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
|
||||||
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
|
<%= link_to t("forgot_your_password"), new_password_path(resource_name) %><br />
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
||||||
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
|
<%= link_to t("didnt_receive_confirmation_instructions"), new_confirmation_path(resource_name) %><br />
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
||||||
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
|
<%= link_to t("didnt_receive_unlock_instructions"), new_unlock_path(resource_name) %><br />
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
<%- if devise_mapping.omniauthable? %>
|
<%- if devise_mapping.omniauthable? %>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>FireStorm - Faktury</title>
|
<title>Invoice Keeper</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<!-- Logo -->
|
<!-- Logo -->
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<h1><a href="index.html">FireStorm - Faktury</a></h1>
|
<h1><a href="index.html">Invoice Keeper</a></h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
|
|
@ -28,12 +28,12 @@
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Moje konto <b class="caret"></b></a>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Moje konto <b class="caret"></b></a>
|
||||||
<ul class="dropdown-menu animated fadeInUp">
|
<ul class="dropdown-menu animated fadeInUp">
|
||||||
<li><a href="profile.html">Profil</a></li>
|
<li><%= link_to "Profil", edit_user_registration_path %></li>
|
||||||
<li>
|
<li>
|
||||||
<% if user_signed_in? %>
|
<% if user_signed_in? %>
|
||||||
<a href="login.html">Wyloguj</a>
|
<%= link_to('Wyloguj', destroy_user_session_path, :method => :delete) %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<a href="login.html">Zaloguj</a>
|
<%= link_to('Zaloguj', new_user_session_path) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>FireStorm - Faktury</title>
|
<title>Invoice Keeper</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<!-- Logo -->
|
<!-- Logo -->
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<h1><a href="index.html">FireStorm - Faktury</a></h1>
|
<h1><a href="index.html">Invoice Keeper</a></h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,60 @@
|
||||||
|
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
||||||
|
|
||||||
|
pl:
|
||||||
|
devise:
|
||||||
|
confirmations:
|
||||||
|
confirmed: "Twoje konto zostało aktywowane. Zostałeś pomyślnie zalogowany."
|
||||||
|
send_instructions: "Za chwilę otrzymasz email z instrukcją jak aktywować konto."
|
||||||
|
send_paranoid_instructions: "Jeśli Twój adres email istnieje w naszej bazie, za chwilę powinieneś otrzymać instrukcję jak aktywować konto."
|
||||||
|
failure:
|
||||||
|
already_authenticated: "Jesteś aktualnie zalogowany."
|
||||||
|
inactive: "Twoje konto nie zostało jeszcze aktywowane."
|
||||||
|
invalid: "Błędny adres email lub hasło."
|
||||||
|
invalid_token: "Błędny token aktywacyjny."
|
||||||
|
locked: "Twoje konto jest zablokowane."
|
||||||
|
not_found_in_database: "Błędny adres email lub hasło."
|
||||||
|
timeout: "Sesja wygasła, zaloguj się ponownie by kontynuować."
|
||||||
|
unauthenticated: "Aby kontynuować musisz się zalogować."
|
||||||
|
unconfirmed: "Aby kontynuować musisz aktywować swoje konto."
|
||||||
|
mailer:
|
||||||
|
confirmation_instructions:
|
||||||
|
subject: "Instrukcja aktywacji konta"
|
||||||
|
reset_password_instructions:
|
||||||
|
subject: "Instrukcja zresetowania hasła."
|
||||||
|
unlock_instructions:
|
||||||
|
subject: "Instrukcja odblokowania konta"
|
||||||
|
omniauth_callbacks:
|
||||||
|
failure: "Logowanie przez konto %{kind} zakończyło się błędem: \"%{reason}\"."
|
||||||
|
success: "Zalogowałeś się pomyślnie przez konto %{kind}."
|
||||||
|
passwords:
|
||||||
|
no_token: "Dostęp do tej strony jest możliwy jedynie poprzez użycie prawidłowego adresu z emaila z instrukcjami o resecie hasłą. Jeżeli właśnie skorzystałeś z tego adresu, sprawdź czy użyty adres jest zgodny z tym w emailu."
|
||||||
|
send_instructions: "Za chwilę otrzymasz emaila z instrukcją jak zresetować hasło."
|
||||||
|
send_paranoid_instructions: "Jeżeli Twój adres istnieje w naszej bazie, otrzymasz za chwilę emaila z instrukcją zmiany hasła."
|
||||||
|
updated: "Twoje hasło zostało zmienione. Zostałeś pomyślnie zalogowany."
|
||||||
|
updated_not_active: "Twoje hasło zostało zmienione."
|
||||||
|
registrations:
|
||||||
|
destroyed: "Do widzenia! Twoje konto zostało usunięte."
|
||||||
|
signed_up: "Witaj! Zarejestrowałeś się pomyślnie."
|
||||||
|
signed_up_but_inactive: "Zarejestrowałeś się pomyślnie. Niemniej jednak nie zostałeś zalogowany, ponieważ Twoje konto nie zostało jeszcze aktywowane."
|
||||||
|
signed_up_but_locked: "Zarejestrowałeś się pomyślnie. Niemniej jednak nie zostałeś zalogowany, ponieważ Twoje konto zostało zablokowane."
|
||||||
|
signed_up_but_unconfirmed: "Wiadomość email z instrukcją aktywacji konta została przesłana na Twój adres email. Użj linku z emaila aby aktywować konto."
|
||||||
|
update_needs_confirmation: "Konto zostało zaktualizowane. Niemniej jednak przed wprowadzeniem zmian musimy potwierdzić Twój nowy adres email. Za chwilę wyślemy instrukcję na nowy adres."
|
||||||
|
updated: "Konto zostało pomyślnie zaktualizowane."
|
||||||
|
sessions:
|
||||||
|
user:
|
||||||
|
signed_in: "Zostałeś zalogowany."
|
||||||
|
signed_out: "Zostałeś wylogowany."
|
||||||
|
unlocks:
|
||||||
|
send_instructions: "Za chwilę otrzymasz wiadomość email z instrukcją jak odblokować konto."
|
||||||
|
send_paranoid_instructions: "Jeżeli Twoje konto istnieje, otrzymasz wiadomość emial z instrukcją jak odblokować konto."
|
||||||
|
unlocked: "Twoje konto została pomyślnie odblokowane. Zaloguj się by kontynuować."
|
||||||
|
errors:
|
||||||
|
messages:
|
||||||
|
already_confirmed: "już został aktywowany, proszę spróbować się zalogować."
|
||||||
|
confirmation_period_expired: "musi zostać potwierdzony w czasie %{period}, wyślij zapytanie o nowy."
|
||||||
|
expired: "stracił ważność, wyślij zapytanie o nowy."
|
||||||
|
not_found: "nie znaleziono"
|
||||||
|
not_locked: "nie był zablokowany"
|
||||||
|
not_saved:
|
||||||
|
one: "%{resource} nie został zapisany z powodu błędu:"
|
||||||
|
other: "%{resource} nie został zapisany z powodu następujących błędów:"
|
||||||
|
|
@ -1,12 +1,20 @@
|
||||||
pl:
|
pl:
|
||||||
back: 'Powrót'
|
back: 'Powrót'
|
||||||
save: 'Zapisz'
|
save: 'Zapisz'
|
||||||
|
log_in: 'Zaloguj'
|
||||||
|
log_out: 'Wyloguj'
|
||||||
|
sign_up: 'Zarejestruj'
|
||||||
|
forgot_your_password: 'Zapmniałeś hasła?'
|
||||||
|
didnt_receive_confirmation_instructions: 'Nie otrzymałeś instrukcji potwierdzenia?'
|
||||||
|
didnt_receive_unlock_instructions: 'Nie otrzymałeś instrukcji odblokowania?'
|
||||||
menu:
|
menu:
|
||||||
dashboard: 'Dashboard'
|
dashboard: 'Dashboard'
|
||||||
customers: 'Klienci'
|
customers: 'Klienci'
|
||||||
products: 'Produkty'
|
products: 'Produkty'
|
||||||
invoices: 'Faktury'
|
invoices: 'Faktury'
|
||||||
activerecord:
|
activerecord:
|
||||||
|
models:
|
||||||
|
user: 'Użytkownik'
|
||||||
attributes:
|
attributes:
|
||||||
customer:
|
customer:
|
||||||
name: 'Nazwa firmy'
|
name: 'Nazwa firmy'
|
||||||
|
|
@ -15,6 +23,10 @@ pl:
|
||||||
postcode: 'Kod pocztowy'
|
postcode: 'Kod pocztowy'
|
||||||
nip: 'NIP'
|
nip: 'NIP'
|
||||||
regon: 'Regon'
|
regon: 'Regon'
|
||||||
|
user:
|
||||||
|
password: 'Hasło'
|
||||||
|
current_password: 'Aktualne hasło'
|
||||||
|
password_confirmation: 'Potwierdzenie hasła'
|
||||||
errors:
|
errors:
|
||||||
messages:
|
messages:
|
||||||
record_invalid: 'Negatywne sprawdzenie poprawności: %{errors}'
|
record_invalid: 'Negatywne sprawdzenie poprawności: %{errors}'
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ Rails.application.routes.draw do
|
||||||
resources :invoices
|
resources :invoices
|
||||||
resources :customers
|
resources :customers
|
||||||
|
|
||||||
|
|
||||||
root 'welcome#index'
|
root 'welcome#index'
|
||||||
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue