Skip to content

Commit

Permalink
Merge branch 'develop' into feature/moveToENVFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McFadden committed Jun 17, 2024
2 parents 4b7f794 + e87cd14 commit c4d64a2
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 794 deletions.
1 change: 1 addition & 0 deletions application/controllers/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ function ($entry) {
}

// useCustomHeader also controls whether or not to show the custom footer
$headerData['customHeaderMode'] = $this->instance->getUseCustomHeader();
if ($this->instance->getUseCustomHeader()) {
$headerData['customHeader'] = $this->instance->getCustomHeaderText();
$headerData['customFooter'] = $this->instance->getCustomFooterText();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/Instances.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function save()
$instance->setBucketRegion($this->input->post('bucketRegion'));
$instance->setDefaultBucket($this->input->post('defaultBucket'));
$instance->setGoogleAnalyticsKey($this->input->post('googleAnalyticsKey'));
$instance->setUseCustomHeader($this->input->post('useCustomHeader')?1:0);
$instance->setUseCustomHeader($this->input->post('useCustomHeader'));
$instance->setCustomHeaderText($this->input->post("customHeaderText"));
$instance->setCustomFooterText($this->input->post("customFooterText"));
$instance->setUseHeaderLogo($this->input->post('useHeaderLogo')?1:0);
Expand Down
2 changes: 1 addition & 1 deletion application/doctrine/Entity.Instance.dcm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<field name="introText" type="text" nullable='true' />
<field name="createdAt" type="datetime" nullable='true' />
<field name="modifiedAt" type="datetime" nullable='true' />
<field name="useCustomHeader" type="boolean" nullable='true' />
<field name="useCustomHeader" type="integer" nullable='true' />
<field name="useCustomCSS" type="boolean" nullable='true' />
<field name="useHeaderLogo" type="boolean" nullable='true' />
<field name="useCentralAuth" type="boolean" nullable='true' />
Expand Down
6 changes: 3 additions & 3 deletions application/models/Entity/Instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Instance
private $modifiedAt;

/**
* @var boolean
* @var integer
*/
private $useCustomHeader;

Expand Down Expand Up @@ -439,7 +439,7 @@ public function getModifiedAt()
/**
* Set useCustomHeader
*
* @param boolean $useCustomHeader
* @param integer $useCustomHeader
* @return Instance
*/
public function setUseCustomHeader($useCustomHeader)
Expand All @@ -452,7 +452,7 @@ public function setUseCustomHeader($useCustomHeader)
/**
* Get useCustomHeader
*
* @return boolean
* @return integer
*/
public function getUseCustomHeader()
{
Expand Down
16 changes: 13 additions & 3 deletions application/views/instances/_form_fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,20 @@

<div class="form-group">
<div class="col-sm-offset-2 col-sm-8">
<label>
<input type="checkbox" id="useCustomHeader" name="useCustomHeader" value="On" <?=$instance->getUseCustomHeader()?"checked":null?>>
Use Custom Header and Footer
Display Custom Header and Footer:
<ul style="list-style-type: none;">
<li><label>
<input type="radio" id="useCustomHeader" name="useCustomHeader" value="0" <?=$instance->getUseCustomHeader()==0?"checked":null?>>
Never</li>
</label>
<li><label>
<input type="radio" id="useCustomHeader" name="useCustomHeader" value="1" <?=$instance->getUseCustomHeader()==1?"checked":null?>>
Always
</label></li>
<li><label>
<input type="radio" id="useCustomHeader" name="useCustomHeader" value="2" <?=$instance->getUseCustomHeader()==2?"checked":null?>>
Only on Home Page
</label></li>
</div>
</div>

Expand Down
2 changes: 0 additions & 2 deletions assets/elevator-ui/dist/assets/MapMarker-281aa571.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/elevator-ui/dist/assets/MapMarker-281aa571.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions assets/elevator-ui/dist/assets/MapPopup-cdb01163.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/elevator-ui/dist/assets/MapPopup-cdb01163.js.map

This file was deleted.

20 changes: 0 additions & 20 deletions assets/elevator-ui/dist/assets/main-16064ad4.css

This file was deleted.

Loading

0 comments on commit c4d64a2

Please sign in to comment.