Sha256: 10bd23ec9d8a079482e223f82208e46628dfee43f2614336e449782e5ecc3604

Contents?: true

Size: 939 Bytes

Versions: 4

Compression:

Stored size: 939 Bytes

Contents

<%= simple_form_for(@gamification_item) do |f| %>
    <%= f.error_notification %>

    <div class="field">
      <%= f.input :name, id: :gamification_item_name %>
      <%= f.input :description, id: :gamification_item_description %>
      <%= f.input :gamification_item_type_id,:collection => Gamification::ItemType.all,:value_method => :id,:label => "Tipo" ,:include_blank => false %>
      <%= f.input :gamification_item_group_id,:collection => Gamification::ItemGroup.all,:value_method => :id,:label => "Grupo" ,:include_blank => false %>

      <%= f.select :rarity, [['Comum', 1], ['Raro', 2], ['Super Raro', 3], ['Ultra Raro', 4], ['Secreto Raro', 5], ['Ultimate Raro', 6]] %>

      <%= f.input :cost, id: :gamification_item_cost %>

      <%= f.input :user_id,:collection => User.all,:value_method => :id,:label => "User" ,:include_blank => false %>

      <%= f.file_field :image %>

      <%= f.submit %>
    </div>
<% end %>



Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
go_gamification-0.0.20 app/views/gamification/items/_form.html.erb
go_gamification-0.0.19 app/views/gamification/items/_form.html.erb
go_gamification-0.0.18 app/views/gamification/items/_form.html.erb
go_gamification-0.0.17 app/views/gamification/items/_form.html.erb