
<div class="page-header">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="<%= dashboard_path %>"><%= t("views.right_panel.button.home") %></a></li>
    <li class="breadcrumb-item"><a href="<%= settings_promotions_path %>"><%= t("views.right_panel.detail.promotion") %></a></li>
    <li class="breadcrumb-item active"><%= t("views.btn.new") %></li>
    <span class="float-right">
      <%= link_to t('.back', :default => t("views.btn.back")), settings_promotions_path %>
    </span>
  </ol>
</div>
<%= render 'form', promotion: @promotion %>
<script>
 var r_id = Math.random().toString(36).slice(5);
 if(r_id.length > 16){
	r_id = r_id.substring(0, 15);
	}
 $("#promotion_promo_code").val(r_id);
// $( "#fromtime" ).timepicker();
// $( "#totime" ).timepicker({ 'scrollDefault': 'now' });
</script>
