mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Rename sellCtrl to changeTypeFormCtrl
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
angular.module("admin.enterprises")
|
||||
.controller "sellsCtrl", ($scope) ->
|
||||
.controller "changeTypeFormCtrl", ($scope) ->
|
||||
$scope.sells = "unspecified"
|
||||
$scope.producer_profile_only = true
|
||||
$scope.submitted = false
|
||||
@@ -1,5 +1,7 @@
|
||||
= admin_inject_enterprise
|
||||
|
||||
= form_for @enterprise, url: main_app.set_sells_admin_enterprise_path(@enterprise),
|
||||
html: { name: "change_type", id: "change_type", novalidate: true, "ng-app" => "admin.enterprises", "ng-controller"=> 'sellsCtrl' } do |change_type_form|
|
||||
html: { name: "change_type", id: "change_type", novalidate: true, "ng-app" => "admin.enterprises", "ng-controller"=> 'changeTypeFormCtrl' } do |change_type_form|
|
||||
-# Have to use hidden:'true' on this input rather than type:'hidden' as the latter seems to break ngPattern and therefore validation
|
||||
%input{ hidden: "true", name: "sells", ng: { required: true, pattern: "/^(none|own)$/", model: 'sells', value: "sells"} }
|
||||
.options.sixteen.columns.alpha
|
||||
|
||||
Reference in New Issue
Block a user