2014-09-17 12:42:37 +03:00
|
|
|
doctype html
|
|
|
|
|
|
|
|
html
|
|
|
|
head
|
|
|
|
meta charset="utf-8"
|
|
|
|
meta http-equiv="X-UA-Compatible" content="IE=edge"
|
|
|
|
meta name="viewport" content="width=device-width, initial-scale=1"
|
2014-09-17 13:25:50 +03:00
|
|
|
title Clarion
|
2014-09-17 12:42:37 +03:00
|
|
|
= stylesheet_link_tag "management/application"
|
2014-10-10 20:25:41 +03:00
|
|
|
= stylesheet_link_tag '//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.2.4/bootstrap-table.min.css'
|
2014-09-17 12:42:37 +03:00
|
|
|
= csrf_meta_tags
|
|
|
|
body
|
|
|
|
nav.navbar.navbar-default.navbar-fixed-top
|
|
|
|
.container
|
|
|
|
.navbar-header
|
|
|
|
button.navbar-toggle.collapsed type="button" data-toggle="collapse" data-target=".navbar-collapse"
|
|
|
|
span.sr-only Toggle navigation
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
= link_to 'Clarion', root_path, class: 'navbar-brand'
|
|
|
|
.navbar-collapse.collapse
|
|
|
|
ul.nav.navbar-nav
|
2014-09-17 14:36:05 +03:00
|
|
|
li class="#{'active' if controller_name == 'users'}"
|
2014-09-17 14:40:31 +03:00
|
|
|
= link_to User.model_name.human(count: 2), management_users_path
|
2014-10-10 19:10:34 +03:00
|
|
|
li class="dropdown #{'active' if controller_name == 'events'}"
|
|
|
|
= link_to '#', class: 'dropdown-toggle', data: {toggle: "dropdown"}
|
|
|
|
= Event.model_name.human(count: 2)
|
|
|
|
span.caret
|
|
|
|
ul.dropdown-menu role="menu"
|
|
|
|
li class="#{'active' if action_name == 'index'}"
|
|
|
|
= link_to "Всички", management_events_path
|
|
|
|
li class="#{'active' if action_name == 'undecided'}"
|
2014-10-10 20:25:41 +03:00
|
|
|
= link_to "Нерешени", undecided_management_events_path
|
2014-10-10 19:10:34 +03:00
|
|
|
li class="#{'active' if action_name == 'approved'}"
|
|
|
|
= link_to "Одобрени", approved_management_events_path
|
2014-10-10 20:25:41 +03:00
|
|
|
li class="#{'active' if action_name == 'backup'}"
|
|
|
|
= link_to "Резерви", backup_management_events_path
|
2014-10-10 19:10:34 +03:00
|
|
|
li class="#{'active' if action_name == 'rejected'}"
|
|
|
|
= link_to "Отхвърлени", rejected_management_events_path
|
|
|
|
|
2014-09-17 12:42:37 +03:00
|
|
|
div.container
|
|
|
|
== yield
|
|
|
|
= javascript_include_tag "management/application"
|
2014-10-10 20:25:41 +03:00
|
|
|
= javascript_include_tag '//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.2.4/bootstrap-table.min.js'
|