public OrganizationEditModel()
        {
            Title = "organization_edit_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");
            NameInput            = new InputModel("Name", "name", true);
            DescriptionInput     = new LongInputModel("Description", "description");
        }
        public ProjectDetailModel()
        {
            Title = "project_detail_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");
            ProjectUidInput = new HiddenInputModel("ProjectUid");
            IsActiveInput = new CheckboxInputModel("IsActive", "is_active", false, true, false);
        }
        public ResetPasswordModel()
        {
            Title = Localizer.Localize("reset_password_title");

            TokenInput           = new HiddenInputModel("Token");
            EmailInput           = new HiddenInputModel("Email");
            PasswordInput        = new PasswordInputModel("Password", "password", true);
            ReEnterPasswordInput = new PasswordInputModel("ReEnterNewPassword", "re_enter_password", true);
        }
示例#4
0
        public IntegrationEditModel()
        {
            Title = "integration_edit_title";

            IntegrationUidInput = new HiddenInputModel("IntegrationUid");

            IntegrationNameInput = new InputModel("Name", "name", true);
            DescriptionInput     = new LongInputModel("Description", "description");
        }
示例#5
0
        public IntegrationCreateModel()
        {
            Title = "integration_create_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");

            NameInput        = new InputModel("Name", "name", true);
            DescriptionInput = new LongInputModel("Description", "description");
        }
示例#6
0
        public LabelTranslationEditModel()
        {
            Title = "label_translation_edit_title";

            OrganizationUidInput     = new HiddenInputModel("OrganizationUid");
            LabelTranslationUidInput = new HiddenInputModel("LabelTranslationUid");

            TranslationInput = new InputModel("Translation", "translation", true);
        }
示例#7
0
        public AdminInviteModel()
        {
            Title = "admin_invite_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");
            EmailInput           = new EmailInputModel("Email", "email", true);
            FirstNameInput       = new InputModel("FirstName", "first_name", true);
            LastNameInput        = new InputModel("LastName", "last_name", true);
        }
示例#8
0
        public LabelDetailModel()
        {
            Title = "label_detail_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");
            ProjectUidInput      = new HiddenInputModel("ProjectUid");
            LabelUidInput        = new HiddenInputModel("LabelUid");
            IsActiveInput        = new CheckboxInputModel("IsActive", "is_active", true, true);
        }
示例#9
0
        public LabelCreateModel()
        {
            Title = "label_create_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");

            ProjectUidInput  = new HiddenInputModel("ProjectUid");
            KeyInput         = new InputModel("Key", "key", true);
            DescriptionInput = new LongInputModel("Description", "description");
        }
        public UploadLabelTranslationFromCSVFileModel()
        {
            Title = "upload_labels_from_csv_file_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");
            LabelUidInput        = new HiddenInputModel("LabelUid");
            LabelKeyInput        = new HiddenInputModel("LabelKey");

            CSVFileInput = new FileInputModel("CSVFile", "csv_file", true);
        }
示例#11
0
        public ProjectCreateModel()
        {
            Title = "project_create_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");

            NameInput        = new InputModel("Name", "name", true);
            UrlInput         = new UrlInputModel("Url", "url");
            DescriptionInput = new LongInputModel("Description", "description");
        }
示例#12
0
        public ChangePasswordModel()
        {
            Title = "user_change_password_title";

            UserUidInput = new HiddenInputModel("UserUid");

            OldPasswordInput        = new PasswordInputModel("OldPassword", "old_password", true);
            NewPasswordInput        = new PasswordInputModel("NewPassword", "password", true);
            ReEnterNewPasswordInput = new PasswordInputModel("ReEnterNewPassword", "re_enter_new_password", true);
        }
示例#13
0
        public LabelEditModel()
        {
            Title = "label_edit_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");

            LabelUidInput    = new HiddenInputModel("LabelUid");
            KeyInput         = new InputModel("Key", "key", true);
            DescriptionInput = new LongInputModel("Description", "description");
        }
        public LabelUploadFromCSVModel()
        {
            Title = "upload_labels_from_csv_file_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");
            ProjectUidInput      = new HiddenInputModel("ProjectUid");
            ProjectNameInput     = new HiddenInputModel("ProjectName");

            CSVFileInput = new FileInputModel("CSVFile", "csv_file", true);
        }
示例#15
0
        public CreateBulkLabelModel()
        {
            Title = "create_bulk_label_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");
            ProjectUidInput      = new HiddenInputModel("ProjectUid");
            ProjectNameInput     = new HiddenInputModel("ProjectName");

            BulkLabelInput = new TextareaInputModel("BulkLabelData", "bulk_label_data");
        }
示例#16
0
        public UserEditModel()
        {
            Title = "user_edit_title";

            UserUidInput = new HiddenInputModel("UserUid");

            FirstNameInput = new InputModel("FirstName", "first_name", true);
            LastNameInput  = new InputModel("LastName", "last_name", true);
            LanguageInput  = new SelectInputModel("LanguageUid", "LanguageName", "language", "/Language/SelectData");
            LanguageInput.IsOptionTypeContent = true;
        }
示例#17
0
        public InviteAcceptModel()
        {
            Title = "accept_invite_title";

            TokenInput = new HiddenInputModel("Token");
            EmailInput = new HiddenInputModel("Email");

            FirstNameInput       = new InputModel("FirstName", "first_name", true);
            LastNameInput        = new InputModel("LastName", "last_name", true);
            PasswordInput        = new PasswordInputModel("Password", "password", true);
            ReEnterPasswordInput = new PasswordInputModel("ReEnterPassword", "re_enter_password", true);
        }
        public AdminAcceptInviteModel()
        {
            Title = "admin_accept_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");
            TokenInput           = new HiddenInputModel("Token");
            EmailInput           = new HiddenInputModel("Email");

            FirstNameInput       = new InputModel("FirstName", "first_name", true);
            LastNameInput        = new InputModel("LastName", "last_name", true);
            PasswordInput        = new PasswordInputModel("Password", "password", true);
            ReEnterPasswordInput = new PasswordInputModel("ReEnterPassword", "re_enter_password", true);
        }
示例#19
0
        public LanguageEditModel()
        {
            Title = "language_edit_title";

            LanguageUidInput = new HiddenInputModel("LanguageUid");

            NameInput         = new InputModel("Name", "name", true);
            OriginalNameInput = new InputModel("OriginalName", "original_name", true);
            IsoCode2Input     = new ShortInputModel("IsoCode2", "iso_code_2_character", true);
            IsoCode3Input     = new ShortInputModel("IsoCode3", "iso_code_3_character", true);
            IconInput         = new FileInputModel("Icon", "icon", false);
            DescriptionInput  = new LongInputModel("Description", "description");
        }
示例#20
0
        public LabelCloneModel()
        {
            Title = "label_clone_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");
            CloningLabelUidInput = new HiddenInputModel("CloningLabelUid");
            CloningLabelKeyInput = new HiddenInputModel("CloningLabelKey");

            ProjectUidInput  = new SelectInputModel("ProjectUid", "ProjectName", "project", "/Project/SelectData/");
            KeyInput         = new InputModel("Key", "key");
            DescriptionInput = new LongInputModel("Description", "description");

            CloningLabelTranslationCountInput = new HiddenInputModel("CloningLabelTranslationCount", "cloning_label_translation_count");
        }
示例#21
0
        public ProjectCloneModel()
        {
            Title = "project_clone_title";

            OrganizationUidInput   = new HiddenInputModel("OrganizationUid");
            CloningProjectUidInput = new HiddenInputModel("CloningProjectUid");
            NameInput = new InputModel("Name", "name");

            UrlInput         = new UrlInputModel("Url", "url");
            DescriptionInput = new LongInputModel("Description", "description");

            LabelCountInput            = new HiddenInputModel("LabelCount");
            LabelTranslationCountInput = new HiddenInputModel("LabelTranslationCount");
            IsSuperProjectInput        = new CheckboxInputModel("IsSuperProject", "is_super_project");
        }
示例#22
0
        public LabelTranslationCreateModel()
        {
            Title = "label_translation_create_title";

            OrganizationUidInput = new HiddenInputModel("OrganizationUid");

            ProjectInput     = new HiddenInputModel("ProjectUid");
            ProjectNameInput = new HiddenInputModel("ProjectName");

            LabelInput    = new HiddenInputModel("LabelUid");
            LabelKeyInput = new HiddenInputModel("LabelKey");

            LanguageInput = new SelectInputModel("LanguageUid", "LanguageName", "language", "/Language/SelectData");
            LanguageInput.IsOptionTypeContent = true;
            LabelTranslationInput             = new LongInputModel("LabelTranslation", "label_translation", true);
        }
 public OrganizationBaseModel()
 {
     OrganizationUidInput = new HiddenInputModel("OrganizationUid");
 }
示例#24
0
        public MvcHtmlString Hidden <TProperty>(string name, TProperty value)
        {
            HiddenInputModel textInputModel = new HiddenInputModel(Helper, name, value);

            return(Helper.Partial("EditorTemplates/Forms/Hidden", textInputModel));
        }
示例#25
0
        public LoginLogsModel()
        {
            Title = "user_login_logs_title";

            UserUidInput = new HiddenInputModel("UserUid");
        }