Skip to content
Snippets Groups Projects
Commit 79b79b75 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

website pages draft

parent 64ae3950
No related branches found
No related tags found
No related merge requests found
Showing
with 27 additions and 124 deletions
json.array! @universities, partial: "universities/university", as: :university
json.partial! "universities/university", university: @university
json.extract! user, :id, :first_name, :last_name, :role, :created_at, :updated_at
json.url user_url(user, format: :json)
json.array! @users, partial: "users/user", as: :user
json.partial! "users/user", user: @user
json.extract! communication_website_page, :id, :university_id, :communication_website_id, :title, :description, :kind, :about_id, :created_at, :updated_at
json.url communication_website_page_url(communication_website_page, format: :json)
<% content_for :title, Communication::Website::Page.model_name.human(count: 2) %>
<table class="table">
<thead>
<tr>
<th>Title</th>
<th>Description</th>
<th>Path</th>
</tr>
</thead>
<tbody>
<% @pages.each do |page| %>
<tr>
<td><%= link_to page, page %></td>
<td><%= page.description %></td>
<td><%= page.path %></td>
</tr>
<% end %>
</tbody>
</table>
json.array! @communication_website_pages, partial: "communication_website_pages/communication_website_page", as: :communication_website_page
<% content_for :title, @page %>
<%= @page.description %>
json.partial! "communication_website_pages/communication_website_page", communication_website_page: @communication_website_page
json.extract! program, :id, :university_id, :name, :level, :capacity, :ects, :continuing, :prerequisites, :objectives, :duration, :registration, :pedagogy, :evaluation, :accessibility, :created_at, :updated_at
json.url features_education_program_url(program, format: :json)
<%= content_for :title, Features::Education::Program.model_name.human(count: 2) %>
<h1><%= Features::Education::Program.model_name.human(count: 2) %></h1>
<ul>
<% @programs.each do |program| %>
<li><%= link_to program, program %></li>
<% end %>
</ul>
json.array! @programs, partial: "features/education/programs/program", as: :program
<%= content_for :title, @program %>
<h1><%= @program %></h1>
<p>
<strong>University:</strong>
<%= @program.university %>
</p>
<p>
<strong>Name:</strong>
<%= @program.name %>
</p>
<p>
<strong>Level:</strong>
<%= @program.level %>
</p>
<p>
<strong>Capacity:</strong>
<%= @program.capacity %>
</p>
<p>
<strong>Ects:</strong>
<%= @program.ects %>
</p>
<p>
<strong>Continuing:</strong>
<%= @program.continuing %>
</p>
<p>
<strong>Prerequisites:</strong>
<%= @program.prerequisites %>
</p>
<p>
<strong>Objectives:</strong>
<%= @program.objectives %>
</p>
<p>
<strong>Duration:</strong>
<%= @program.duration %>
</p>
<p>
<strong>Registration:</strong>
<%= @program.registration %>
</p>
<p>
<strong>Pedagogy:</strong>
<%= @program.pedagogy %>
</p>
<p>
<strong>Evaluation:</strong>
<%= @program.evaluation %>
</p>
<p>
<strong>Accessibility:</strong>
<%= @program.accessibility %>
</p>
json.partial! "features/education/programs/program", program: @program
json.extract! site, :id, :name, :domain, :created_at, :updated_at
json.url features_websites_site_url(features_websites_site, format: :json)
<%= content_for :title, Features::Websites::Site.model_name.human(count: 2) %>
<h1><%= Features::Websites::Site.model_name.human(count: 2) %></h1>
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Domain</th>
</tr>
</thead>
<tbody>
<% @sites.each do |site| %>
<tr>
<td><%= site.name %></td>
<td><%= link_to site.domain_url, site.domain_url, target: :_blank %></td>
</tr>
<% end %>
</tbody>
</table>
json.array! @sites, partial: "features/websites/sites/site", as: :site
<p id="notice"><%= notice %></p>
<p>
<strong>Name:</strong>
<%= @features_websites_site.name %>
</p>
<p>
<strong>Domain:</strong>
<%= @features_websites_site.domain %>
</p>
<%= link_to 'Edit', edit_features_websites_site_path(@features_websites_site) %> |
<%= link_to 'Back', features_websites_sites_path %>
json.partial! "features/websites/sites/site", site: @site
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment