From: Anthony Talarico Date: Mon, 18 Sep 2017 18:29:52 +0000 (-0400) Subject: adding more front end output styles X-Git-Tag: v1.0.0~1^2~32 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=676d0b6805d90d1de266bfafda083a45627c4fb0;p=WP-Plugins%2Fglm-member-db-jobs.git adding more front end output styles adding resume column to the database table and adding more styles for the front end output of the job postings --- diff --git a/classes/data/dataJobs.php b/classes/data/dataJobs.php index 825718d..2887b3e 100644 --- a/classes/data/dataJobs.php +++ b/classes/data/dataJobs.php @@ -154,6 +154,11 @@ class GlmDataJobs extends GlmDataAbstract 'type' => 'text', 'use' => 'a' ), + 'resume_location' => array ( + 'field' => 'email_location', + 'type' => 'text', + 'use' => 'a' + ), 'email_location' => array ( 'field' => 'email_location', 'type' => 'text', diff --git a/css/front.css b/css/front.css index 9c8b40d..8f7f1e4 100644 --- a/css/front.css +++ b/css/front.css @@ -1,3 +1,3 @@ -.no-padding{padding:0}.front-job-listings-wrapper{margin-top:20px}.front-job-listings-wrapper .front-job-list-row{margin-bottom:20px}.front-job-listings-wrapper .job-title-search #job_title_dropdown{max-width:450px}.front-job-listings-wrapper .job-title-search .job-title-button{height:39px}.front-job-listings-wrapper .job-title-list span{font-weight:bold;font-size:20px}@media screen and (max-width: 641px){.front-job-listings-wrapper .job-title-button{display:block;max-width:100px;margin:0 auto}.front-job-listings-wrapper .front-job-search{margin-bottom:20px}}@media (min-width: 639px) and (max-width: 1025px){.front-job-listings-wrapper .job-title-button{display:inline-block;margin:0 0 0 10px}}@media (min-width: 1023px){.front-job-listings-wrapper .job-title-button{display:inline-block;margin:0 0 0 10px}} +.no-padding{padding:0}body .front-job-listings-wrapper{margin-top:20px}body .front-job-listings-wrapper .job-detail-wrapper div{float:none !important;line-height:1.1;margin:7px}body .front-job-listings-wrapper span{font-weight:bold}body .front-job-listings-wrapper .front-job-list-row{margin-bottom:20px}body .front-job-listings-wrapper .front-job-list-row .job-title-list span{font-size:20px}body .front-job-listings-wrapper .job-title-search #job_title_dropdown{max-width:450px}body .front-job-listings-wrapper .job-title-search .job-title-button{height:39px}@media screen and (max-width: 641px){body .front-job-listings-wrapper .job-title-button{display:block;max-width:100px;margin:0 auto}body .front-job-listings-wrapper .front-job-search{margin-bottom:20px}}@media (min-width: 639px) and (max-width: 1025px){body .front-job-listings-wrapper .job-title-button{display:inline-block;margin:0 0 0 10px}}@media (min-width: 1023px){body .front-job-listings-wrapper .job-title-button{display:inline-block;margin:0 0 0 10px}} /*# sourceMappingURL=front.css.map */ diff --git a/css/front.css.map b/css/front.css.map index 6f2c792..9858feb 100644 --- a/css/front.css.map +++ b/css/front.css.map @@ -1 +1 @@ -{"version":3,"file":"front.css","sources":["front.scss"],"sourcesContent":[".no-padding{\n padding: 0;\n}\n\n.front-job-listings-wrapper{\n .front-job-list{\n\n }\n margin-top: 20px;\n\n .front-job-list-row{\n margin-bottom: 20px;\n }\n .job-title-search{\n #job_title_dropdown{\n max-width: 450px;\n }\n .job-title-button{\n height: 39px;\n }\n }\n .job-title-list{\n span{\n font-weight: bold;\n font-size: 20px;\n }\n }\n @media screen and (max-width: 641px){\n .job-title-button{\n display: block;\n max-width: 100px;\n margin: 0 auto;\n }\n .front-job-search{\n margin-bottom: 20px;\n }\n }\n @media (min-width: 639px) and (max-width: 1025px){\n .job-title-button{\n display: inline-block;\n margin: 0 0 0 10px;\n }\n }\n @media (min-width: 1023px){\n .job-title-button{\n display: inline-block;\n margin: 0 0 0 10px;\n } \n }\n}"],"names":[],"mappings":"AAAA,AAAA,WAAW,AAAA,CACP,OAAO,CAAE,CAAC,CACb,AAED,AAAA,2BAA2B,AAAA,CAIvB,UAAU,CAAE,IAAI,CAyCnB,AA7CD,AAMI,2BANuB,CAMvB,mBAAmB,AAAA,CACf,aAAa,CAAE,IAAI,CACtB,AARL,AAUQ,2BAVmB,CASvB,iBAAiB,CACb,mBAAmB,AAAA,CACf,SAAS,CAAE,KAAK,CACnB,AAZT,AAaQ,2BAbmB,CASvB,iBAAiB,CAIb,iBAAiB,AAAA,CACb,MAAM,CAAE,IAAI,CACf,AAfT,AAkBQ,2BAlBmB,CAiBvB,eAAe,CACX,IAAI,AAAA,CACA,WAAW,CAAE,IAAI,CACjB,SAAS,CAAE,IAAI,CAClB,AAEL,MAAM,CAAC,MAAM,MAAM,SAAS,EAAE,KAAK,EAvBvC,AAwBQ,2BAxBmB,CAwBnB,iBAAiB,AAAA,CACb,OAAO,CAAE,KAAK,CACd,SAAS,CAAE,KAAK,CAChB,MAAM,CAAE,MAAM,CACjB,AA5BT,AA6BQ,2BA7BmB,CA6BnB,iBAAiB,AAAA,CACb,aAAa,CAAE,IAAI,CACtB,CAEL,MAAM,EAAE,SAAS,EAAE,KAAK,OAAO,SAAS,EAAE,MAAM,EAjCpD,AAkCQ,2BAlCmB,CAkCnB,iBAAiB,AAAA,CACb,OAAO,CAAE,YAAY,CACrB,MAAM,CAAE,UAAU,CACrB,CAEL,MAAM,EAAE,SAAS,EAAE,MAAM,EAvC7B,AAwCQ,2BAxCmB,CAwCnB,iBAAiB,AAAA,CACb,OAAO,CAAE,YAAY,CACrB,MAAM,CAAE,UAAU,CACrB"} \ No newline at end of file +{"version":3,"file":"front.css","sources":["front.scss"],"sourcesContent":[".no-padding{\n padding: 0;\n}\n\nbody .front-job-listings-wrapper {\n .job-detail-wrapper{\n div{\n float: none !important;\n line-height: 1.1;\n margin: 7px;\n }\n }\n\n margin-top: 20px;\n span{\n font-weight: bold;\n }\n \n .front-job-list-row{\n margin-bottom: 20px;\n .job-title-list{\n span{\n font-size: 20px;\n }\n }\n\n }\n .job-title-search{\n #job_title_dropdown{\n max-width: 450px;\n }\n .job-title-button{\n height: 39px;\n }\n }\n \n @media screen and (max-width: 641px){\n .job-title-button{\n display: block;\n max-width: 100px;\n margin: 0 auto;\n }\n .front-job-search{\n margin-bottom: 20px;\n }\n }\n @media (min-width: 639px) and (max-width: 1025px){\n .job-title-button{\n display: inline-block;\n margin: 0 0 0 10px;\n }\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b,OAAO,CAAE,YAAY,CACrB,MAAM,CAAE,UAAU,CACrB,CAEL,MAAM,EAAE,SAAS,EAAE,MAAM,EAhD7B,AAiDQ,IAjDJ,CAAC,2BAA2B,CAiDxB,iBAAiB,AAAA,CACb,OAAO,CAAE,YAAY,CACrB,MAAM,CAAE,UAAU,CACrB"} \ No newline at end of file diff --git a/scss/front.scss b/scss/front.scss index 3986e2f..cc49ea9 100644 --- a/scss/front.scss +++ b/scss/front.scss @@ -2,20 +2,28 @@ padding: 0; } -.front-job-listings-wrapper{ - .front-job-list{ - +body .front-job-listings-wrapper { + .job-detail-wrapper{ + div{ + float: none !important; + line-height: 1.1; + margin: 7px; + } } - margin-top: 20px; + margin-top: 20px; + span{ + font-weight: bold; + } + .front-job-list-row{ margin-bottom: 20px; .job-title-list{ span{ - font-weight: bold; font-size: 20px; } } + } .job-title-search{ #job_title_dropdown{ diff --git a/setup/databaseScripts/create_database_V0.0.1.sql b/setup/databaseScripts/create_database_V0.0.1.sql index 4cb6ac4..a47e149 100644 --- a/setup/databaseScripts/create_database_V0.0.1.sql +++ b/setup/databaseScripts/create_database_V0.0.1.sql @@ -18,6 +18,7 @@ CREATE TABLE {prefix}jobs ( descr TEXT NULL , salary TINYTEXT NULL , email_location TINYTEXT NULL , + resume_location TINYTEXT NULL , contactname TINYTEXT NULL , contactphone TINYTEXT NULL , post_date DATETIME NULL DEFAULT NOW(), @@ -54,10 +55,10 @@ INSERT INTO {prefix}job_titles ( id,job_title) VALUES -- Job Titles default entries in table INSERT INTO {prefix}jobs ( -id,title,descr,salary, email_location,contactname,contactphone,post_date,visible, +id,title,descr,salary, email_location,resume_location,contactname,contactphone,post_date,visible, facility_operation,requirements,job_location,job_expiration,duration,deadline,position_available, company,member,benefits -) VALUES ( 1, 1,"DESCRIPTION",'SALARY', 'EMAIL LOCATION', 'CONTACT NAME', '453-3443', NOW(), true, +) VALUES ( 1, 1,"DESCRIPTION",'SALARY', 'EMAIL LOCATION', 'RESUME LOCATION','CONTACT NAME', '453-3443', NOW(), true, 'facility operations', 'REQUIREMENTS', 'JOB LOCATION', 30, 'JOB DURATION', 'DEADLINE', 'POSITION AVAILABLE', 'COMPANY', 1, 'JOB BENEFITS' ); \ No newline at end of file diff --git a/views/front/jobs/detail.html b/views/front/jobs/detail.html index 06e3200..81977c1 100644 --- a/views/front/jobs/detail.html +++ b/views/front/jobs/detail.html @@ -1,26 +1,54 @@ - -
-
{$jobData.title}
-
{$jobData.job_location}
-
{$jobData.position_available}
-
{$jobData.salary}
-
{$jobData.duration}
-
{$jobData.company}
-
{$jobData.facility_operation}
-
{$jobData.descr}
-
{$jobData.requirements}
-
{$jobData.benefits}
-
{$jobData.email_location}
-
{$jobData.email_location}
-
{$jobData.contactphone}
+
+ +
+ {if $jobData.title} +
{$jobData.title}
+ {/if} + {if $jobData.job_location} +
Location: {$jobData.job_location}
+ {/if} + {if $jobData.position_available} +
Position Available: {$jobData.position_available}
+ {/if} + {if $jobData.salary} +
Salary: {$jobData.salary}
+ {/if} + {if $jobData.duration} +
Position Length: {$jobData.duration}
+ {/if} + {if $jobData.company} +
Company: {$jobData.company}
+ {/if} + {if $jobData.facility_operation} +
Facility Operation: {$jobData.facility_operation}
+ {/if} + {if $jobData.descr} +
Job Description: {$jobData.descr}
+ {/if} + {if $jobData.requirements} +
Requirements: {$jobData.requirements}
+ {/if} + {if $jobData.benefits} +
Benefits: {$jobData.benefits}
+ {/if} + {if $jobData.email_location} + + {/if} + {if $jobData.email_location} +
Contact Email: {$jobData.email_location}
+ {/if} + {if $jobData.contactphone} +
Contact Phone: {$jobData.contactphone}
+ {/if} +
\ No newline at end of file