In Django and Rails
{% block branding %}
<h1 id="site-name"><a href="{% url 'admin:index' %}">Polls Administration</a></h1>
{% endblock %}You can freely change the templates:
Descriptors for the fields:
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question_text']}),
('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}),
]
inlines = [ChoiceInline]
admin.site.register(Question, QuestionAdmin) <%= f.inputs :name => "Author", :for => :author do |author_form| %>
<%= author_form.input :first_name %>
<%= author_form.input :last_name %>
<% end %>
RoR templating plugin
ActiveAdmin.register Author do
show do
panel "Table of Contents" do
table_for book.chapters do
column :first_name
column :last_name
end
end
active_admin_comments
endTemplating:
<%= f.inputs :name => "Author", :for => :author do |author_form| %>
<%= author_form.input :first_name %>
<%= author_form.input :last_name %>
<% end %>
RoR templating plugin
ActiveAdmin.register Author do
show do
panel "Table of Contents" do
table_for book.chapters do
column :first_name
column :last_name
end
end
active_admin_comments
endTemplating: