copy from seminar

This commit is contained in:
邱博亞 2022-03-10 10:11:18 +08:00
parent aba01c8239
commit 63b5e77b92
431 changed files with 4985 additions and 4985 deletions

View File

@ -1,6 +1,6 @@
source "https://rubygems.org"
# Declare your gem's dependencies in seminar.gemspec.
# Declare your gem's dependencies in application_form.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
gemspec

View File

@ -1,7 +1,7 @@
PATH
remote: .
specs:
seminar (0.0.1)
application_form (0.0.1)
rails (~> 4.1.9)
remote: custom_announcement
specs:
@ -88,7 +88,7 @@ PLATFORMS
ruby
DEPENDENCIES
seminar!
application_form!
custom_announcement!
custom_gallery!
sqlite3

View File

@ -1,3 +1,3 @@
= Seminar
= ApplicationForm
This project rocks and uses MIT-LICENSE.

View File

@ -8,7 +8,7 @@ require 'rdoc/task'
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Seminar'
rdoc.title = 'ApplicationForm'
rdoc.options << '--line-numbers'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')

View File

@ -96,7 +96,7 @@ function inputAppendLength() {
// Role Attribute Template Data
function setData(l, type, ol) {
var fields = $('#info').length ? "info[seminar_submission_fields]" : $('#sub_seminar_main').length ? "sub_seminar_main[seminar_submission_fields]" : "seminar_main[seminar_submission_fields]",
var fields = $('#info').length ? "info[application_form_submission_fields]" : $('#sub_application_form_main').length ? "sub_application_form_main[application_form_submission_fields]" : "application_form_main[application_form_submission_fields]",
data = {
_add_more: ["add_more_" +l, fields+"["+l+"]["+type+"][add_more]"],
_calendar: ["calendar_" +l, fields+"["+l+"]["+type+"][calendar]"],
@ -195,7 +195,7 @@ $(function() {
addressVal = [];
addressArray = [];
addressInputId = [];
seminar_mainType = null;
application_form_mainType = null;
returnDecide = false;
$('.attributes').each(function() {
if($(this).find('.toggle-check').attr('value') == "true") {
@ -222,7 +222,7 @@ $(function() {
});
$('#user-forms').delegate('.togglebox, .delete, .trigger, .remove-input', clickEvent, function(event) {
if($(this).hasClass('togglebox')) {
var seminar_main_staus = [];
var application_form_main_staus = [];
if($(this).hasClass('disable')) {
$(this).find('.toggle-check')
.attr('value', 'false')
@ -239,7 +239,7 @@ $(function() {
.fadeOut(300)
.find('.check')
.attr("checked",false)
.attr("value",seminar_main_staus);
.attr("value",application_form_main_staus);
}
$(this).toggleClass('disable');
};
@ -253,7 +253,7 @@ $(function() {
appendIndex = $(this).closest('.controls').find('.input-append').length;
nameNumber = $(this).closest('.controls').find('.input-append:eq(0)').find('input').eq(0).attr('name');
nameNumber = nameNumber.match(/[^[\D\]]+(?=])/g)[0];
seminar_mainType = $(this).data('seminar_mains')
application_form_mainType = $(this).data('application_form_mains')
if($(this).hasClass('textInput')) {
$("#template-text").tmpl().appendTo($(this).closest('.controls').find('.add-target'));
} else if ($(this).hasClass('textLengInput')) {

View File

@ -96,7 +96,7 @@ function inputAppendLength() {
// Role Attribute Template Data
function setData(l, type, ol) {
var fields = $('#info').length ? "info[seminar_signup_fields]" : $('#sub_seminar_main').length ? "sub_seminar_main[seminar_signup_fields]" : "seminar_main[seminar_signup_fields]",
var fields = $('#info').length ? "info[application_form_signup_fields]" : $('#sub_application_form_main').length ? "sub_application_form_main[application_form_signup_fields]" : "application_form_main[application_form_signup_fields]",
data = {
_add_more: ["add_more_" +l, fields+"["+l+"]["+type+"][add_more]"],
_calendar: ["calendar_" +l, fields+"["+l+"]["+type+"][calendar]"],
@ -195,7 +195,7 @@ $(function() {
addressVal = [];
addressArray = [];
addressInputId = [];
seminar_mainType = null;
application_form_mainType = null;
returnDecide = false;
$('.attributes').each(function() {
if($(this).find('.toggle-check').attr('value') == "true") {
@ -222,7 +222,7 @@ $(function() {
});
$('#user-forms').delegate('.togglebox, .delete, .trigger, .remove-input', clickEvent, function(event) {
if($(this).hasClass('togglebox')) {
var seminar_main_staus = [];
var application_form_main_staus = [];
if($(this).hasClass('disable')) {
$(this).find('.toggle-check')
.attr('value', 'false')
@ -239,7 +239,7 @@ $(function() {
.fadeOut(300)
.find('.check')
.attr("checked",false)
.attr("value",seminar_main_staus);
.attr("value",application_form_main_staus);
}
$(this).toggleClass('disable');
};
@ -253,7 +253,7 @@ $(function() {
appendIndex = $(this).closest('.controls').find('.input-append').length;
nameNumber = $(this).closest('.controls').find('.input-append:eq(0)').find('input').eq(0).attr('name');
nameNumber = nameNumber.match(/[^[\D\]]+(?=])/g)[0];
seminar_mainType = $(this).data('seminar_mains')
application_form_mainType = $(this).data('application_form_mains')
if($(this).hasClass('textInput')) {
$("#template-text").tmpl().appendTo($(this).closest('.controls').find('.add-target'));
} else if ($(this).hasClass('textLengInput')) {

View File

@ -26,7 +26,7 @@ function checkedLength() {
if(_checked > 0) {
$('#deselect').removeClass('hide');
$('#deselect').on('click', deselect);
$('#deleteItems').attr('rel', "<%= Rails.application.routes.url_helpers.delete_items_admin_seminar_items_path %>" + "?ids=" + ids);
$('#deleteItems').attr('rel', "<%= Rails.application.routes.url_helpers.delete_items_admin_application_form_items_path %>" + "?ids=" + ids);
$('#deleteItems').removeClass('hide');
} else {
@ -45,19 +45,19 @@ function checkedLength() {
reload_links();
});
$('#deleteItems').on('click', function() {
$('#delete_seminar_items .tags-groups').empty();
$('#delete_seminar_items a.delete-tags').attr("href", $(this).attr("rel"));
$('#delete_application_form_items .tags-groups').empty();
$('#delete_application_form_items a.delete-tags').attr("href", $(this).attr("rel"));
if(ids.length) {
$('.filter-item').children('.card.active').each(function(i, e) {
console.log($(e))
$(e).parents('.filter-item').clone().appendTo('#delete_seminar_items .tags-groups');
$('#delete_seminar_items .tags-groups .filter-item').addClass('def');
$(e).parents('.filter-item').clone().appendTo('#delete_application_form_items .tags-groups');
$('#delete_application_form_items .tags-groups .filter-item').addClass('def');
});
}
$('#delete_seminar_items').modal('show', cleanTagInputs());
$('#delete_application_form_items').modal('show', cleanTagInputs());
function cleanTagInputs(){
var $tagsDelete = $('#delete_seminar_items'),
var $tagsDelete = $('#delete_application_form_items'),
$filterItem = $tagsDelete.find('.filter-item');
$filterItem.find('.card, .amount').remove();
$filterItem.find('a').removeAttr('class');

View File

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 160 KiB

View File

@ -20,7 +20,7 @@ body, .layout-footer, .layout-footer-inner {
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 173 KiB

After

Width:  |  Height:  |  Size: 173 KiB

View File

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 142 KiB

View File

@ -5,7 +5,7 @@ body{
background: #0b0c0f;
}
header{
background: url("/assets/seminar/background_style/10/pageheader.jpg") no-repeat scroll left top #0b0c0f;
background: url("/assets/application_form/background_style/10/pageheader.jpg") no-repeat scroll left top #0b0c0f;
}
.layout-footer-content, .layout-footer-inner,.layout-footer-content, .footer-counter{
color: #ffffff;
@ -32,7 +32,7 @@ header{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 137 KiB

View File

Before

Width:  |  Height:  |  Size: 411 B

After

Width:  |  Height:  |  Size: 411 B

View File

@ -2,7 +2,7 @@ header, .layout-footer, .layout-footer-inner {
background: transparent;
}
body{
background: url("/assets/seminar/background_style/11/body.jpg") repeat-x 0 0 #fff;
background: url("/assets/application_form/background_style/11/body.jpg") repeat-x 0 0 #fff;
/*background: linear-gradient(to bottom, #303030 50%, #d4d3d3 50%);*/
}
.layout-footer-content, .layout-footer-inner,.layout-footer-content, .footer-counter{
@ -27,7 +27,7 @@ body{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 146 KiB

View File

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 127 KiB

View File

@ -30,7 +30,7 @@ body{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -2,7 +2,7 @@ header, .layout-footer {
background: transparent;
}
body{
background: url("/assets/seminar/background_style/13/top_bg.jpg") top left repeat-x #ebeef7;
background: url("/assets/application_form/background_style/13/top_bg.jpg") top left repeat-x #ebeef7;
}
.layout-footer-inner{
padding: 1em;
@ -30,7 +30,7 @@ body{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

@ -9,7 +9,7 @@ header{
background: #ffffff;
}
body{
background: #f17655 url("/assets/seminar/background_style/14/top_bg.jpg") left top repeat-x;
background: #f17655 url("/assets/application_form/background_style/14/top_bg.jpg") left top repeat-x;
background-position-y: 120px;
}
.layout-footer-content, .layout-footer-inner,.layout-footer-content, .footer-counter{
@ -34,7 +34,7 @@ body{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View File

Before

Width:  |  Height:  |  Size: 774 B

After

Width:  |  Height:  |  Size: 774 B

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

@ -6,7 +6,7 @@ header, .layout-content, .layout-footer{
padding: 1em;
}
body{
background: #ffffff url("/assets/seminar/background_style/15/top_bg.jpg") left top repeat-x;
background: #ffffff url("/assets/application_form/background_style/15/top_bg.jpg") left top repeat-x;
background-position-y: 120px;
}
.layout-footer-content, .layout-footer-inner,.layout-footer-content, .footer-counter{
@ -31,7 +31,7 @@ body{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

@ -31,7 +31,7 @@ body{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB

View File

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -2,14 +2,14 @@
background: transparent;
}
.layout-footer{
background: url("/assets/seminar/background_style/17/bottom_bg.jpg") no-repeat scroll left top #1c2c46;
background: url("/assets/application_form/background_style/17/bottom_bg.jpg") no-repeat scroll left top #1c2c46;
}
body{
background: transparent;
}
header{
background: url("/assets/seminar/background_style/17/pageheader.jpg") no-repeat scroll left top #5b6986;
background: url("/assets/application_form/background_style/17/pageheader.jpg") no-repeat scroll left top #5b6986;
}
.layout-footer-content, .layout-footer-inner,.layout-footer-content, .footer-counter{
color: #ffffff;
@ -33,7 +33,7 @@ header{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 145 KiB

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -2,7 +2,7 @@ header, .layout-footer, .layout-footer-inner {
background: transparent;
}
body{
background: #eaeaea url("/assets/seminar/background_style/2/body.gif") left top repeat-x;
background: #eaeaea url("/assets/application_form/background_style/2/body.gif") left top repeat-x;
/*background: linear-gradient(to bottom, #303030 50%, #d4d3d3 50%);*/
}
.layout-footer-content, .layout-footer-inner,.layout-footer-content, .footer-counter{
@ -27,7 +27,7 @@ body{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 173 KiB

After

Width:  |  Height:  |  Size: 173 KiB

View File

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 136 KiB

View File

@ -8,7 +8,7 @@ body{
background: transparent;
}
header{
background: url("/assets/seminar/background_style/3/pageheader.jpg") no-repeat scroll left top 1.5em transparent;
background: url("/assets/application_form/background_style/3/pageheader.jpg") no-repeat scroll left top 1.5em transparent;
}
.layout-header > .container:before {
background: #cc3303;
@ -37,7 +37,7 @@ header{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

View File

Before

Width:  |  Height:  |  Size: 643 B

After

Width:  |  Height:  |  Size: 643 B

View File

@ -2,7 +2,7 @@ header, .layout-footer, .layout-footer-inner {
background: transparent;
}
body{
background: #ffffff url("/assets/seminar/background_style/4/body.jpg") left top repeat-x;
background: #ffffff url("/assets/application_form/background_style/4/body.jpg") left top repeat-x;
}
.layout-footer-content, .layout-footer-inner,.layout-footer-content, .footer-counter{
color: #606060;
@ -26,7 +26,7 @@ body{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

View File

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 124 KiB

View File

@ -29,7 +29,7 @@ header{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 103 KiB

View File

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 134 KiB

View File

Before

Width:  |  Height:  |  Size: 731 B

After

Width:  |  Height:  |  Size: 731 B

View File

@ -6,7 +6,7 @@ header, .layout-footer{
padding: 1em;
}
body{
background: #eaeef1 url("/assets/seminar/background_style/6/body.jpg") left top repeat-x;
background: #eaeef1 url("/assets/application_form/background_style/6/body.jpg") left top repeat-x;
background-position-y: 120px;
}
.layout-footer-content, .layout-footer-inner,.layout-footer-content, .footer-counter{
@ -31,7 +31,7 @@ body{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 119 KiB

View File

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 126 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -8,7 +8,7 @@ header{
background: #ffffff;
}
body{
background: #361c44 url("/assets/seminar/background_style/7/body.jpg") left top repeat-x;
background: #361c44 url("/assets/application_form/background_style/7/body.jpg") left top repeat-x;
background-position-y: 120px;
}
.layout-footer-content, .layout-footer-inner,.layout-footer-content, .footer-counter{
@ -33,7 +33,7 @@ body{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

Before

Width:  |  Height:  |  Size: 152 KiB

After

Width:  |  Height:  |  Size: 152 KiB

View File

@ -35,7 +35,7 @@ body{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 138 KiB

View File

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 136 KiB

View File

Before

Width:  |  Height:  |  Size: 805 B

After

Width:  |  Height:  |  Size: 805 B

View File

@ -8,7 +8,7 @@ header{
background: #e3e3e3;
}
body{
background: #141414 url("/assets/seminar/background_style/9/body.jpg") left top repeat-x;
background: #141414 url("/assets/application_form/background_style/9/body.jpg") left top repeat-x;
background-position-y: 120px;
}
.layout-footer-content, .layout-footer-inner,.layout-footer-content, .footer-counter{
@ -33,7 +33,7 @@ body{
.aside{
padding-left: 0;
}
.seminar_hr{
.application_form_hr{
border-top: 0.1em dashed #acacac;
margin: 0.5em 0;
}

View File

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 148 KiB

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

@ -1,11 +1,11 @@
.layout-content-inner{
background: #ffffff;
}
.seminar_hr{
.application_form_hr{
display: none;
}
[class*=widget-title] , .seminar_h3{
[class*=widget-title] , .application_form_h3{
margin: 0.5em 0;
line-height: 1.5;
color: #396992;

View File

@ -1,7 +1,7 @@
$(document).ready(function(){
$('#main-content > * > [class*="-title"] ,[data-pp] > * > [class*="-title"], .page-module-title').each(function(i,h3){
if($(h3).prop('tagName').match(/(h1|h2|h3|h4)/i) && $(h3).next(".seminar_hr").length == 0){
$(h3).after("<hr class=\"seminar_hr\">")
if($(h3).prop('tagName').match(/(h1|h2|h3|h4)/i) && $(h3).next(".application_form_hr").length == 0){
$(h3).after("<hr class=\"application_form_hr\">")
}
})
})

View File

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

View File

@ -1,10 +1,10 @@
.layout-content-inner{
background: #ffffff;
}
/*.seminar_hr{
/*.application_form_hr{
display: none;
}*/
.internal-page [class*=widget-title] , .seminar_h3{
.internal-page [class*=widget-title] , .application_form_h3{
margin: 0.5em 0;
line-height: 1.5;
color: #333333;

View File

@ -1,7 +1,7 @@
$(document).ready(function(){
$('#main-content > * > [class*="-title"] ,[data-pp] > * > [class*="-title"], .page-module-title').each(function(i,h3){
if($(h3).prop('tagName').match(/(h1|h2|h3|h4)/i) && $(h3).next(".seminar_hr").length == 0){
$(h3).after("<hr class=\"seminar_hr\">")
if($(h3).prop('tagName').match(/(h1|h2|h3|h4)/i) && $(h3).next(".application_form_hr").length == 0){
$(h3).after("<hr class=\"application_form_hr\">")
}
})
})

Some files were not shown because too many files have changed in this diff Show More