瀏覽代碼

[minor] labels

version-14
Rushabh Mehta 10 年之前
父節點
當前提交
ceb0f1821d
共有 2 個檔案被更改,包括 4 行新增4 行删除
  1. +3
    -3
      frappe/core/page/user_permissions/user_permissions.js
  2. +1
    -1
      frappe/public/js/frappe/ui/toolbar/about.js

+ 3
- 3
frappe/core/page/user_permissions/user_permissions.js 查看文件

@@ -243,7 +243,7 @@ frappe.UserPermissions = Class.extend({
+__("These restrictions will apply for Document Types where 'Apply User Permissions' is checked for the permission rule and a field with this value is present.") +__("These restrictions will apply for Document Types where 'Apply User Permissions' is checked for the permission rule and a field with this value is present.")
+'</p>').appendTo(this.body); +'</p>').appendTo(this.body);


$.each([[__("Allow User If"), 150], [__("Document Type"), 150], [__("Is"),150], ["", 50]],
$.each([[__("Allow User"), 150], [__("If Document Type"), 150], [__("Is"),150], ["", 50]],
function(i, col) { function(i, col) {
$("<th>").html(col[0]).css("width", col[1]+"px") $("<th>").html(col[0]).css("width", col[1]+"px")
.appendTo(me.table.find("thead tr")); .appendTo(me.table.find("thead tr"));
@@ -300,9 +300,9 @@ frappe.UserPermissions = Class.extend({
var d = new frappe.ui.Dialog({ var d = new frappe.ui.Dialog({
title: __("Add A New Restriction"), title: __("Add A New Restriction"),
fields: [ fields: [
{fieldtype:"Select", label:__("Allow User If"),
{fieldtype:"Select", label:__("Allow User"),
options:me.options.users, reqd:1, fieldname:"user"}, options:me.options.users, reqd:1, fieldname:"user"},
{fieldtype:"Select", label: __("Select Document Type"), fieldname:"defkey",
{fieldtype:"Select", label: __("If Document Type"), fieldname:"defkey",
options:me.get_link_names(), reqd:1}, options:me.get_link_names(), reqd:1},
{fieldtype:"Link", label:__("Is"), fieldname:"defvalue", {fieldtype:"Link", label:__("Is"), fieldname:"defvalue",
options:'[Select]', reqd:1}, options:'[Select]', reqd:1},


+ 1
- 1
frappe/public/js/frappe/ui/toolbar/about.js 查看文件

@@ -13,7 +13,7 @@ frappe.ui.misc.about = function() {
<h4>Installed Apps</h4>\ <h4>Installed Apps</h4>\
<div id='about-app-versions'>Loading versions...</div>\ <div id='about-app-versions'>Loading versions...</div>\
<hr>\ <hr>\
<p class='text-muted'>&copy; 2014 Frappe Technologies Pvt. Ltd and contributers </p> \
<p class='text-muted'>&copy; 2014 Frappe Technologies Pvt. Ltd and contributors </p> \
</div>", frappe.app)); </div>", frappe.app));


frappe.ui.misc.about_dialog = d; frappe.ui.misc.about_dialog = d;


Loading…
取消
儲存