ソースを参照

Solo rubricas del programa o escuela en rubric builder

コミット
ae33bcfa4f
共有4 個のファイルを変更した7 個の追加4 個の削除を含む
  1. 2
    1
      .gitignore
  2. 2
    2
      app/controllers/Objective2Controller.php
  3. 1
    1
      app/controllers/TemplatesController.php
  4. 2
    0
      app/views/local/managers/shared/rubrics_new.blade.php

+ 2
- 1
.gitignore ファイルの表示

@@ -12,7 +12,8 @@ app/config/testing/*
12 12
 app/config/database.php
13 13
 app/config/app.php
14 14
 app/config/*
15
-
15
+app/storage/annual_pdfs/*
16
+public/exports/*
16 17
 
17 18
 node_modules/
18 19
 vendor/*

+ 2
- 2
app/controllers/Objective2Controller.php ファイルの表示

@@ -50,7 +50,7 @@ class Objective2Controller extends \BaseController
50 50
 	{
51 51
 		/** Validation rules */
52 52
 
53
-		if (!$edit) {
53
+		if ($edit) {
54 54
 			return Validator::make(
55 55
 				array(
56 56
 					'text' => $clean_input['text'],
@@ -620,4 +620,4 @@ class Objective2Controller extends \BaseController
620 620
 	{
621 621
 		//
622 622
 	}
623
-}
623
+}

+ 1
- 1
app/controllers/TemplatesController.php ファイルの表示

@@ -248,7 +248,7 @@ class TemplatesController extends \BaseController
248 248
 			// 			var_dump(json_encode($templates_dentro));
249 249
 // 		}
250 250
 
251
-
251
+	$templates_fuera=array();
252 252
 		return View::make('local.managers.shared.rubrics_new', compact('title', 'templates_dentro', 'templates_fuera', 'outcomes', 'criteria', 'schools', 'programs', 'criteria_ids'));
253 253
 	}
254 254
 

+ 2
- 0
app/views/local/managers/shared/rubrics_new.blade.php ファイルの表示

@@ -115,8 +115,10 @@
115 115
 
116 116
                             @endforeach
117 117
                         </select>
118
+<!-- 
118 119
 					<span style="color: red;">Rubrics with "##" at the beginning contain criteria that are not associated with your program or school. You will not be able to use them until your criteria is matched with your program or school.
119 120
                     </span>
121
+ -->
120 122
 					</div>
121 123
 
122 124
                     <!-- If user is admin s/he can pick which schools can view the rubric -->