Sha256: 836a08fd23ca6ed05129d14e8eac52ceb6091d0e481d0e06a8c305f1435116fd

Contents?: true

Size: 1.87 KB

Versions: 40

Compression:

Stored size: 1.87 KB

Contents

-user_configuration = authenticated(User).user_configurations.last

.container
  .block-header
    h2
      | ConfiguraciĆ³n

.card
  form.card-body.card-padding action="/user/configuration" method="POST" data-toggle="validator"
    .row
      .col-xs-2
        .pull-right
          h5.c-gray Tema

      .col-xs-4
        == select_input({ :name => "css", :elements => [{ :text => "Default", :value => nil}, { :text => "Wieldy", :value => 'wieldy'}, { :text => "Metronic", :value => 'metronic'}, { :text => "Light Admin", :value => 'lightadmin'}], :placeholder => "" , :chosen => user_configuration.nil?? nil : user_configuration.css })

      .col-xs-6

    .row
      .col-xs-2
        .pull-right
          h5.c-gray Fuentes

      .col-xs-4
        -fonts = ['Roboto', 'Concert One','Lato','Montserrat', 'Nunito', 'Open Sans', 'Oswald', 'PT Sans', 'Quicksand', 'Raleway', 'Roboto', 'Rubik', 'Slabo 27px', 'Source Sans Pro', 'Ubuntu' ]
        == select_input({ :name => "fonts", :elements => [{ :text => "Default", :value => nil} ] + fonts.collect { |font| { :text => font, :value => font } }, :placeholder => "" , :chosen => user_configuration.nil?? nil : user_configuration.fonts })

      .col-xs-6

    .row
      .col-xs-2
        .pull-right
          h5.c-gray Darkmode

      .col-xs-4
        == radio_input({ :name => "dark_mode", :elements => [ { :name => "Deshabilitado", :value => 'disable'},{ :name => "Siempre", :value => 'always'},{ :name => "Habilitado", :value => 'enable'}], :filters => { 'dark_mode' => user_configuration.nil?? 'enable' : user_configuration.dark_mode }})

      .col-xs-6

    .footer-btn
      button.btn.btn-float.bgm-green.m-btn.waves-effect.waves-circle.waves-float type="submit"
        i.zmdi.zmdi-floppy
    .footer-text
      button.text.btn.bgm-white.c-gray type="submit" Guardar

css:
  .radio-inline {
    display: block;
    margin-left: 0px !important;
  }

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
sinatra-hexacta-1.7.20 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.19 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.18 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.17 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.16 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.15 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.14 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.13 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.12 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.11 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.10 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.9 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.8 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.7 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.6 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.5 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.4 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.3 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.2 lib/sinatra/views/user_configurations/edit.slim
sinatra-hexacta-1.7.0 lib/sinatra/views/user_configurations/edit.slim