Updated HWC deadline

This commit is contained in:
Josef Citrine 2016-12-17 21:16:16 +00:00
parent 90183df484
commit e23e1a3dab
3 changed files with 4 additions and 2 deletions

View file

@ -178,7 +178,7 @@ class EditTrackCommand extends CommandBase
]); ]);
} }
if (isset($this->_input['hwc_submit']) && new \DateTime() < new \DateTime("2016-12-18 00:00:00")) { if (isset($this->_input['hwc_submit']) && new \DateTime() < new \DateTime("2016-12-20 23:59:59")) {
$playlist = Playlist::where('user_id', 22549)->first(); $playlist = Playlist::where('user_id', 22549)->first();
if ($this->_input['hwc_submit'] == 'true') { if ($this->_input['hwc_submit'] == 'true') {

View file

@ -108,7 +108,7 @@
<div class="col-md-3 form-row"> <div class="col-md-3 form-row">
<label for="is_listed"><input ng-disabled="isSaving" ng-change="touchModel()" id="is_listed" type="checkbox" ng-model="track.is_listed" /> Is Listed</label> <label for="is_listed"><input ng-disabled="isSaving" ng-change="touchModel()" id="is_listed" type="checkbox" ng-model="track.is_listed" /> Is Listed</label>
</div> </div>
<div class="col-md-3 form-row"> <div class="col-md-3 form-row" ng-hide="disableHwc">
<label for="hwc_submit"><input ng-disabled="isSaving" ng-change="touchModel()" id="hwc_submit" type="checkbox" ng-model="track.hwc_submit" /> Submit to <a href="https://mlpforums.com/topic/159868-ponyfms-hearths-warming-contest/">Hearth's Warming Contest</a></label> <label for="hwc_submit"><input ng-disabled="isSaving" ng-change="touchModel()" id="hwc_submit" type="checkbox" ng-model="track.hwc_submit" /> Submit to <a href="https://mlpforums.com/topic/159868-ponyfms-hearths-warming-contest/">Hearth's Warming Contest</a></label>
</div> </div>
</div> </div>

View file

@ -33,6 +33,8 @@ module.exports = angular.module('ponyfm').directive 'pfmTrackEditor', () ->
$scope.isAdmin = auth.data.isAdmin $scope.isAdmin = auth.data.isAdmin
albumsDb = {} albumsDb = {}
$scope.disableHwc = new Date < new Date('2016-12-20 23:59:59')
$scope.data = upload $scope.data = upload
$scope.userSlug = $state.params.slug $scope.userSlug = $state.params.slug