diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f57a131..bcd7a02 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,13 +2,13 @@ - - - + + + @@ -66,21 +66,46 @@ - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -135,9 +160,7 @@ @@ -751,7 +776,7 @@ - + @@ -759,12 +784,12 @@ - + - + @@ -886,16 +911,12 @@ - - - + - - - + @@ -907,137 +928,82 @@ - - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - + - - - + - - - + @@ -1049,9 +1015,7 @@ - - - + @@ -1063,37 +1027,27 @@ - - - + - - - + - - - + - - - + - - - + @@ -1105,18 +1059,46 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/www/javascript/prism.js b/www/javascript/prism.js index b69ebc3..d086f91 100644 --- a/www/javascript/prism.js +++ b/www/javascript/prism.js @@ -34,5 +34,6 @@ Prism.languages.csharp=Prism.languages.extend("clike",{keyword:/\b(abstract|as|b * My own languages */ Prism.languages.befunge = {};; +Prism.languages.plain = {};; (function(){if(!self.Prism){return}var e={csharp:"C#",cpp:"C++"};Prism.hooks.add("before-highlight",function(t){var n=e[t.language]||t.language;t.element.setAttribute("data-language",n)})})(); diff --git a/www/protected/views/blogPost/_form.php b/www/protected/views/blogPost/_form.php index 9792e44..94859a6 100644 --- a/www/protected/views/blogPost/_form.php +++ b/www/protected/views/blogPost/_form.php @@ -19,7 +19,12 @@ errorSummary($model); ?> - textFieldControlGroup($model,'Date',array('span'=>5)); ?> + isNewRecord) + echo $form->textFieldControlGroup($model,'Date',array('span'=>5, 'value' => date('Y-m-d'))); + else + echo $form->textFieldControlGroup($model,'Date',array('span'=>5, )); + ?> textFieldControlGroup($model,'Title',array('span'=>8)); ?>