Packages

This is a CMS written in Elixir. Aims to be the great open-source ecommerce and/or startup solution for those who are searching for a performance and stability on top of modern technologies like React and Elixir.

Current section

Files

Jump to
lyn web templates admin form_group.html.eex
Raw

web/templates/admin/form_group.html.eex

<%= unless @id == @skip_id || @id == :sort_order ||
@id == :inserted_at || @id == :updated_at do %>
<div class="form-group">
<%= if @column.type != :hidden do %>
<%= label @f, @column.label, class: "control-label" %>
<% end %>
<%= case @column.type do
:boolean -> checkbox @f, @id, class: "form-control"
:integer -> number_input @f, @id, class: "form-control"
:datetime -> datetime_select @f, @id, class: "form-control"
:string -> text_input @f, @id, class: "form-control"
:hidden -> hidden_input @f, @id
end
%>
<%= if @column.type != :hidden do %>
<%= error_tag @f, @id %>
<% end %>
</div>
<% end %>