-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8679214
commit 8ed3053
Showing
28 changed files
with
368 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$(document).ready(function () { | ||
// Fadeout and autoclose alert | ||
window.setTimeout(function() { | ||
$(".alert").fadeTo(500, 0).slideUp(500, function(){ | ||
$(this).remove(); | ||
}); | ||
}, 1000); | ||
|
||
// Datetimepicker | ||
$('.datetimepicker').datetimepicker({ | ||
format: 'DD/MM/YYYY' | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,36 @@ | ||
/*# Pagination */ | ||
// Social share button | ||
|
||
.social-share-button { | ||
@extend .float-right ; | ||
} | ||
|
||
// Custom pagination | ||
|
||
.pagination { | ||
justify-content: center; | ||
} | ||
|
||
// Speeches-show | ||
|
||
.main-raised.speeches-show { | ||
margin: 80px 30px 0; | ||
} | ||
|
||
// Custom header | ||
|
||
.navbar.navbar-transparent.custom-header { | ||
background-color: #9c27b0 !important; | ||
padding: 0.625rem 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
// Custom alert | ||
|
||
#top-alert { | ||
position: fixed; | ||
top: 70px; | ||
z-index: 69; | ||
color: #fff; | ||
background-color: #9c27b0; | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,57 @@ | ||
<%= form_for @speech do |f| %> | ||
<%= render "shared/error_messages", object: speech %> | ||
<div class="main main-raised speeches-show"> | ||
<div class="container"> | ||
<div class="section section-text"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="mx-auto mb-5 text-center"> | ||
<h1 class="title"><%= yield :title %></h1> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-8 ml-auto mr-auto"> | ||
<%= form_for @speech do |f| %> | ||
<%= render "shared/error_messages", object: speech %> | ||
|
||
<div> | ||
<%= f.label :themes %> | ||
<ul class="book_form"> | ||
<%= f.collection_check_boxes :theme_ids, Theme.all, :id, :title do |theme| %> | ||
<li class="theme_box"> | ||
<%= theme.label("data-value": theme.value) {theme.check_box + theme.text} %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<div> | ||
<%= f.label :themes %> | ||
<ul class="book_form list-unstyled"> | ||
<%= f.collection_check_boxes :theme_ids, Theme.all, :id, :title do |theme| %> | ||
<li class="theme_box"> | ||
<%= theme.label("data-value": theme.value) {theme.check_box + theme.text} %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
|
||
<div class="field"> | ||
<%= f.label :title %> | ||
<%= f.text_field :title, placeholder: t(".title"), class: "form-control" %> | ||
</div> | ||
<div class="form-group has-default"> | ||
<%= f.label :title %> | ||
<%= f.text_field :title, placeholder: t(".title"), class: "form-control" %> | ||
</div> | ||
|
||
<div class="field"> | ||
<%= f.label :content %> | ||
<%= f.cktext_area :content, row: 20 %> | ||
</div> | ||
<div class="title"> | ||
<%= f.label :content %> | ||
</div> | ||
<div class="form-group label-floating"> | ||
<%= f.cktext_area :content, row: 5 %> | ||
</div> | ||
|
||
<div class="field"> | ||
<%= f.label :location %> | ||
<%= f.select :location_id, options_from_collection_for_select(Location.all, :id, :name), class: "form-control" %> | ||
</div> | ||
<div class="form-group"> | ||
<%= f.label :location %> | ||
<%= f.select :location_id, options_from_collection_for_select(Location.all, :id, :name, @speech.location_id), {}, {class: "selectpicker mt-0", data: {style: "select-with-transition", size: "7"}} %> | ||
</div> | ||
|
||
<div class="field"> | ||
<%= f.label :speaking_day %> | ||
<%= f.date_select :speaking_day, class: "form-control" %> | ||
</div> | ||
<div class="form-group"> | ||
<%= f.label :speaking_day, class: "label-control" %> | ||
<%= f.text_field :speaking_day, class: "form-control datetimepicker", value: (@speech.speaking_day.blank? ? '' : @speech.speaking_day.strftime('%d/%m/%Y')) %> | ||
</div> | ||
|
||
<%= f.submit t(".save"), class: "btn btn-primary" %> | ||
<% end %> | ||
<div class="text-center"> | ||
<%= f.submit t(".save"), class: "btn btn-primary" %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
<h1><%= t ".edit" %></h1> | ||
<% provide :title, t(".title") %> | ||
<% provide :custom_header, t(".custom_header") %> | ||
<% content_for :body_class, t(".body_class") %> | ||
|
||
<div> | ||
<%= render "form", speech: @speech %> | ||
</div> | ||
|
||
<%= link_to t(".back"), speeches_path %> | ||
<%= render "form", speech: @speech %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<h1><%= t ".new" %></h1> | ||
<% provide :title, t(".title") %> | ||
<% provide :custom_header, t(".custom_header") %> | ||
<% content_for :body_class, t(".body_class") %> | ||
|
||
<div> | ||
<%= render "form", speech: @speech %> | ||
</div> | ||
<%= link_to t(".back"), speeches_path %> | ||
<%= render "form", speech: @speech %> |
Oops, something went wrong.