Merge branch 'master' into 'master'

Fix bug. Update css files.

See merge request spen/seminar!48
This commit is contained in:
chiu 2022-07-13 06:30:08 +00:00
commit 6b31d7e969
22 changed files with 395 additions and 9 deletions

View File

@ -60,4 +60,28 @@ header{
.layout-footer{
padding: 1em;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -72,4 +72,26 @@ header{
.header-nav{
text-align: right;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -64,4 +64,26 @@ body{
.layout-footer{
padding: 1em;
}
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -71,4 +71,26 @@ body{
.layout-footer{
padding: 1em;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -71,4 +71,26 @@ body{
.layout-footer{
padding: 1em;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -78,4 +78,26 @@ body{
.layout-footer{
padding: 1em;
}
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -75,4 +75,26 @@ body{
.layout-footer{
padding: 1em;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -75,4 +75,26 @@ body{
.layout-footer{
padding: 1em;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -74,4 +74,27 @@ header{
.header-nav{
text-align: right;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -64,4 +64,26 @@ body{
.layout-footer{
padding: 1em;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -75,4 +75,26 @@ header{
.layout-footer{
padding: 1em;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -63,4 +63,26 @@ body{
.layout-footer{
padding: 1em;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -69,4 +69,26 @@ header{
.layout-header .header-nav{
text-align: right;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -72,4 +72,26 @@ body{
.layout-footer{
padding: 1em;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -77,4 +77,26 @@ body{
.layout-footer{
padding: 1em;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -7,7 +7,7 @@
.layout-footer .layout-footer-inner{
background: #ffffff;
}
.layout-header{
.layout-header > .container{
background: #01538f;
}
body{
@ -79,4 +79,26 @@ body{
.layout-footer{
padding: 1em;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -77,4 +77,26 @@ body{
.layout-footer{
padding: 1em;
}
}
@media (min-width: 1200px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 80%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 80%;
}
}
@media (min-width: 768px)and(max-width: 1199px){
.internal-page.seminar_custom_page header{
width: 100%;
}
.internal-page.seminar_custom_page header .container {
width: 90%;
}
.internal-page.seminar_custom_page .mainContent,.internal-page.seminar_custom_page .layout-slide,.internal-page.seminar_custom_page .layout-content-inner.container,.internal-page.seminar_custom_page .container.layout-footer-inner {
width: 90%;
}
}

View File

@ -108,4 +108,7 @@ li.w-annc__item.row .w-annc__postdate-wrap {
[data-module="seminars_home"] .row > * > section:nth-of-type(1){
padding-right: 1em;
}
}
.page-content-box[data-pp="200"],.page-content-box[data-pp="201"]{
background:#fff;
}

View File

@ -273,9 +273,13 @@
</thead>
<tbody>
<% @custom_set.each_with_index do |attr_custom,custom_index| %>
<%
seminar_signup_field = SeminarSignupField.where(id:attr_custom.seminar_signup_field_id).first
next if seminar_signup_field.nil?
%>
<tr>
<td>
<%= SeminarSignupField.where(id:attr_custom.seminar_signup_field_id).first.title rescue '' %>
<%= seminar_signup_field.title rescue '' %>
</td>
<td>
<input type="hidden" class="field_set" name='<%= "seminar_main[seminar_signup_field_customs][#{custom_index}][hidden]" %>' value="false">

View File

@ -22,7 +22,7 @@
<% @field_name_translations << t(th) %>
<% end %>
<% end %>
<% if @seminar.seminar_signup_field_customs.count != 0 %>
<% if false #@seminar.seminar_signup_field_customs.count != 0 %>
<% @seminar.seminar_signup_field_customs.each do |field_set| %>
<% s = SeminarSignupField.where(id:field_set.seminar_signup_field_id).first %>
<% title = s.title rescue '' %>
@ -104,7 +104,7 @@
<% end %>
<% end %>
<% seminar_signup_field_customs = SeminarSignupFieldCustom.all.map{|field_set| SeminarSignupField.where(id: field_set.seminar_signup_field_id).first}.select{|s| !s.nil?}.uniq{|s| s.key } %>
<% if seminar_signup_field_customs.count != 0 %>
<% if false #seminar_signup_field_customs.count != 0 %>
<% seminar_signup_field_customs.each do |s| %>
<% title = s.title rescue '' %>
<% next if title.blank? %>

View File

@ -8,9 +8,11 @@
<% if @drag%>
<th></th>
<% end %>
<% @field_name_translations.each_with_index do |trans,i|%>
<% next unless @display_field.include?(@field_names[i]) %>
<th class="span2" id="<%=@field_names[i]%>"><%= trans %></th>
<%
@field_name_translations = @field_name_translations.map.with_index{|trans,i| [@field_names[i], trans]}.to_h
%>
<% @display_field.each do |field_name| %>
<th class="span2" id="<%= field_name %>"><%= @field_name_translations[field_name] %></th>
<% end %>
</tr>
</thead>