Commit 423b3343 authored by Evren Kutar's avatar Evren Kutar

FIX refactor text_general field type

ADD centering headers for forms api not give style
parent f8319f7d
......@@ -1850,4 +1850,10 @@ table.dataTable thead .sorting:after {
filter: alpha(opacity=0);
}
/* end file upload */
\ No newline at end of file
/* end file upload */
.mid-h3 {
text-align: center;
margin-bottom: 20px;
color: #636363 ;
}
\ No newline at end of file
<div class="container-fluid">
<div ng-class="{'col-md-8': meta.allow_filters}">
<msgbox ng-show="msgbox"></msgbox>
<h3>{{ schema.title }}</h3>
<h3 ng-class="{'mid-h3': !objects}">{{ schema.title }}</h3>
<crud-show-directive ng-if="object"></crud-show-directive>
<crud-form-directive ng-if="forms"></crud-form-directive>
<crud-list-directive ng-if="objects"></crud-list-directive>
......
......@@ -551,6 +551,15 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
int: {default: _numbers},
boolean: {default: function () {}},
string: {default: function () {}},
text_general: {
default:
function (scope, v, k) {
v.type = 'string',
v["x-schema-form"] = {
"type": "textarea"
}
}
},
float: {default: _numbers},
model: {default: function (scope, v, k) {
......
This diff is collapsed.
This diff is collapsed.
......@@ -1866,6 +1866,12 @@ table.dataTable thead .sorting:after {
/* end file upload */
.mid-h3 {
text-align: center;
margin-bottom: 20px;
color: #636363 ;
}
/*
* metismenu - v1.1.3
* Easy menu jQuery plugin for Twitter Bootstrap 3
......
......@@ -24,7 +24,7 @@ angular.module("components/crud/templates/crud.html", []).run(["$templateCache",
"<div class=\"container-fluid\">\n" +
" <div ng-class=\"{'col-md-8': meta.allow_filters}\">\n" +
" <msgbox ng-show=\"msgbox\"></msgbox>\n" +
" <h3>{{ schema.title }}</h3>\n" +
" <h3 ng-class=\"{'mid-h3': !objects}\">{{ schema.title }}</h3>\n" +
" <crud-show-directive ng-if=\"object\"></crud-show-directive>\n" +
" <crud-form-directive ng-if=\"forms\"></crud-form-directive>\n" +
" <crud-list-directive ng-if=\"objects\"></crud-list-directive>\n" +
......@@ -1696,11 +1696,11 @@ angular.module("shared/templates/nodeTable.html", []).run(["$templateCache", fun
" <th>İşlem</th>\n" +
" </tr>\n" +
" <tr ng-if=\"node.schema.formType=='ListNode'\">\n" +
" <th colspan=\"2\">\n" +
" <!--<label>-->\n" +
" <!--<input type=\"checkbox\" style=\"zoom:1.5; margin:5px 0 0 8px;\">-->\n" +
" <!--Hepsini Seç-->\n" +
" <!--</label>-->\n" +
" <th colspan=\"2\" ng-if=\"meta.allow_selection===true\">\n" +
" <label>\n" +
" <input type=\"checkbox\" style=\"zoom:1.5; margin:5px 0 0 8px;\">\n" +
" Hepsini Seç\n" +
" </label>\n" +
" </th>\n" +
" <th ng-repeat=\"(key,value) in node.items[0] track by $index\"\n" +
" ng-if=\"key!=='idx' && node.schema.properties[key]\">\n" +
......@@ -1730,26 +1730,32 @@ angular.module("shared/templates/nodeTable.html", []).run(["$templateCache", fun
" <tr ng-repeat=\"listnodemodel in node.items track by $index\"\n" +
" ng-init=\"outerIndex=$index\"\n" +
" ng-if=\"node.schema.formType=='ListNode'\">\n" +
" <td width=\"60\">\n" +
" <!--<label>-->\n" +
" <!--<input type=\"checkbox\" style=\"zoom:1.5; margin:5px 0 0 8px;\">-->\n" +
" <!--</label>-->\n" +
" <td ng-if=\"meta.allow_selection===true\" width=\"60\">\n" +
" <label>\n" +
" <input type=\"checkbox\" style=\"zoom:1.5; margin:5px 0 0 8px;\">\n" +
" </label>\n" +
" </td>\n" +
" <th scope=\"row\" style=\"text-align:center\">{{$index+1}}</th>\n" +
" <td ng-repeat=\"(k, v) in listnodemodel track by $index\"\n" +
" ng-init=\"innerIndex=$index\"\n" +
" ng-if=\"k!=='idx' && node.schema.properties[k]\">\n" +
" <span ng-if=\"!node.schema.inline_edit || node.schema.inline_edit.indexOf(k) < 0\">{{ v.unicode || v }}</span>\n" +
" <input type=\"node.schema.formType\"\n" +
" <input type=\"{{node.schema.properties[k].type}}\"\n" +
" ng-if=\"node.schema.inline_edit.indexOf(k) > -1\"\n" +
" ng-model=\"node.model[outerIndex][k]\"\n" +
" ng-change=\"nodeModelChange(this)\">\n" +
" </td>\n" +
" <td ng-if=\"meta.allow_actions!==false\">\n" +
" <button modal-for-nodes=\"{{node.schema.model_name}},{{node.schema.formType}},edit,{{$index}}\">Düzenle\n" +
" </button>\n" +
" <br>\n" +
" <button ng-click=\"remove(node, 'ListNode', $index)\">Sil</button>\n" +
" <div ng-hide=\"meta.object_actions.length > 0\">\n" +
" <button modal-for-nodes=\"{{node.schema.model_name}},{{node.schema.formType}},edit,{{$index}}\">\n" +
" Düzenle\n" +
" </button>\n" +
" <br>\n" +
" <button ng-click=\"remove(node, 'ListNode', $index)\">Sil</button>\n" +
" </div>\n" +
" <div ng-show=\"meta.object_actions.length > 0\">\n" +
" <!-- define object actions here -->\n" +
" </div>\n" +
" </td>\n" +
" </tr>\n" +
"\n" +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment