add localization for all form data

This commit is contained in:
phyusin
2017-10-27 17:00:56 +06:30
parent d916c262d7
commit ef05aec1db
81 changed files with 735 additions and 621 deletions

View File

@@ -1,9 +1,9 @@
<!-- <h1>Editing Settings Menu Item</h1>-->
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item"><a href="<%= settings_menu_category_simple_menu_item_path(@category,@item) %>">Menu Item</a></li>
<li class="breadcrumb-item active">New</li>
<li class="breadcrumb-item"><a href="<%= dashboard_path %>"><%= t("views.right_panel.button.home") %></a></li>
<li class="breadcrumb-item"><a href="<%= settings_menu_category_simple_menu_item_path(@category,@item) %>"><%= t("views.right_panel.header.menu_item_instances") %></a></li>
<li class="breadcrumb-item active"><%= t("views.btn.edit") %></li>
<span class="float-right">
<%= link_to 'Back', settings_menu_category_simple_menu_item_path(@category,@item) %>
</span>

View File

@@ -1,9 +1,9 @@
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= %>">Home</a></li>
<li><a href="<%= settings_menu_categories_path %>">Menus Categories</a></li>
<li><a href="<%= %>"><%= t("views.right_panel.button.home") %></a></li>
<li><a href="<%= settings_menu_categories_path %>"><%= t("views.right_panel.header.menu_item_instances") %></a></li>
<li>Menu Items</li>
<li><%= t("views.right_panel.header.menu_items") %></li>
<span style="float: right">
<%= link_to t("views.btn.new"),new_settings_menu_category_set_menu_item_path(@category),:class => 'btn btn-primary btn-sm' %>
</span>
@@ -11,16 +11,16 @@
</div>
<div class="card">
<div class="card-block">
<h4 class="card-title">Menu Category</h4>
<h4 class="card-title"><%= t("views.right_panel.header.menu_category") %></h4>
<table class="table">
<thead>
<tr>
<th>Menu</th>
<th>Name</th>
<th>Alt name</th>
<th>Order by</th>
<th>Parent</th>
<th colspan="2">Actions</th>
<th><%= t("views.right_panel.detail.menu") %></th>
<th><%= t("views.right_panel.detail.name") %></th>
<th><%= t("views.right_panel.detail.alt_name") %></th>
<th><%= t("views.right_panel.detail.order_by") %></th>
<th><%= t("views.right_panel.detail.parent") %></th>
<th><%= t("views.right_panel.detail.actions") %></th>
</tr>
</thead>
@@ -49,7 +49,7 @@
<br/>
<div class="card">
<div class="card-block">
<h4 class="card-title">Menu Items
<h4 class="card-title"><%= t("views.right_panel.header.menu_items") %>
<span style="float: right">
<%= link_to "New Simple Menu Item",new_settings_menu_category_simple_menu_item_path(@category),:class => 'btn btn-primary btn-sm' %>
<%= link_to "New Set Menu Item",new_settings_menu_category_set_menu_item_path(@category),:class => 'btn btn-primary btn-sm' %>
@@ -59,15 +59,14 @@
<table class="table">
<thead>
<tr>
<th>Item code</th>
<th>Name</th>
<th>Alt name</th>
<th>Type</th>
<th>Parent Item</th>
<th>Created by</th>
<th>Created at</th>
<th colspan="3"></th>
<th><%= t("views.right_panel.detail.item_code") %></th>
<th><%= t("views.right_panel.detail.name") %></th>
<th><%= t("views.right_panel.detail.alt_name") %></th>
<th><%= t("views.right_panel.detail.type") %></th>
<th><%= t("views.right_panel.detail.parent_item") %></th>
<th><%= t("views.right_panel.detail.created_by") %></th>
<th><%= t("views.right_panel.detail.created_at") %></th>
<th><%= t("views.right_panel.detail.actions") %></th>
</tr>
</thead>

View File

@@ -1,8 +1,8 @@
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item"><a href="<%= settings_menu_category_simple_menu_item_path(@category,@item) %>">Menu Item</a></li>
<li class="breadcrumb-item active">New</li>
<li class="breadcrumb-item"><a href="<%= dashboard_path %>"><%= t("views.right_panel.button.home") %></a></li>
<li class="breadcrumb-item"><a href="<%= settings_menu_category_simple_menu_item_path(@category,@item) %>"><%= t("views.right_panel.header.menu_item_instances") %></a></li>
<li class="breadcrumb-item active"><%= t("views.btn.new") %></li>
<span class="float-right">
<%= link_to 'Back', settings_menu_category_simple_menu_item_path(@category,@item) %>
</span>

View File

@@ -12,9 +12,9 @@
</div> -->
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item"><a href="<%= settings_menu_category_simple_menu_item_path(@category,@item) %>">Menu Item Instances</a></li>
<li class="breadcrumb-item active">Detail</li>
<li class="breadcrumb-item"><a href="<%= dashboard_path %>"><%= t("views.right_panel.button.home") %></a></li>
<li class="breadcrumb-item"><a href="<%= settings_menu_category_simple_menu_item_path(@category,@item) %>"><%= t("views.right_panel.header.menu_item") %></a></li>
<li class="breadcrumb-item active"><%= t("en.details") %></li>
<span class="float-right">
<%= link_to 'Back', settings_menu_category_simple_menu_item_path(@category,@item) %>
</span>
@@ -26,32 +26,32 @@
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<div class="card">
<div class="card-block">
<h4 class="card-title">Menu Item Instance</h4>
<h4 class="card-title"><%= t("views.right_panel.header.menu_item_instances") %></h4>
<table class="table">
<tbody>
<tr><th>Item Instance code</th>
<tr><th><%= t("views.right_panel.detail.item_instance_code") %></th>
<td><%= @settings_menu_item_instances.item_instance_code %></td>
</tr>
<tr><th>Name</th>
<tr><th><%= t("views.right_panel.detail.name") %></th>
<td><%= @settings_menu_item_instances.item_instance_name rescue "-" %></td>
</tr>
<tr><th>Price</th>
<tr><th><%= t("views.right_panel.detail.price") %></th>
<td><%= @settings_menu_item_instances.price %></td>
</tr>
<tr><th>On Promotion</th>
<tr><th><%= t("views.right_panel.detail.is_on_promotion") %></th>
<td><%= @settings_menu_item_instances.is_on_promotion %></td>
</tr>
<tr><th>Promotion Price</th>
<tr><th><%= t("views.right_panel.detail.promotion_price") %></th>
<td><%= @settings_menu_item_instances.promotion_price %></td>
</tr>
<tr><th>Available</th>
<tr><th><%= t("views.right_panel.detail.is_available") %></th>
<td><%= @settings_menu_item_instances.is_available %></td>
</tr>
<tr><th>Is Default</th>
<tr><th><%= t("views.right_panel.detail.is_default") %></th>
<td><%= @settings_menu_item_instances.is_default %></td>
</tr>
<tr><th>Created At</th>
<tr><th><%= t("views.right_panel.detail.created_at") %></th>
<td><%= @settings_menu_item_instances.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td>
</tr>