#special-day-index-page
  
  .page-header
    %h2
      %li.icon-cog
      = Yii::t("app", "Special Days")
      
  .row
    - $specialDays = $dataProvider->data
    .tableContainer.pagination-data-container
      %table.table.table-condensed.span12
        %thead
          %tr
          %tr
            %th= t('ID')
            %th= t('Name')
            %th= t('Description')
            %th= t('Date')
            %th= t('Creation date')
            %th
              %a.btn.btn-mini(href="#{Yii::app()->createAbsoluteUrl('specialDay/create')}")
                =Yii::t('app', 'New special day')   

        %tbody
          - foreach($specialDays as $specialDay)
            %tr
              %td
                =$specialDay->id
              %td
                =$specialDay->name
              %td
                =$specialDay->description
              %td
                =$specialDay->day
                =DateHelper::getMonthName($specialDay->month)
              %td
                =DateHelper::formatMedium($specialDay->epoch)
              %td
                .btn-group
                  %a.btn.btn-small.dropdown-toggle(data-toggle="dropdown" href="#")
                    = Yii::t("app", "Actions")
                    %span.caret
                  %ul.dropdown-menu.pull-right
                    %li
                      %a(href="#{Yii::app()->createUrl('specialDay/update', array('id' => $specialDay->id))}")
                        = Yii::t("app", ("Modify"))
                    %li
                      %a(href="#{Yii::app()->createUrl('specialDay/delete', array('id' => $specialDay->id))}")
                        = Yii::t("app", ("Delete"))   