I develop a symfony 1.4 project,my issue with admin panel in backend,so I use the administration generator to do it.
I have a list of members generated automatically in backend,now Im hopping to add some custom action when a memeber edit her profile in backend,then I wish to add in edit page radio dial buttons give simple “Yes” or “No” Options. By default, the radial dial button is set to “No.” However, if the admin selects “Yes” then a popup window will come with the following text: “Are you sure you want to sell a new membership" and If the admin selects “Yes” and then saves the profile, a pop Window will need to display that reads: “New Membership sold"...
the problem is I can't change code because the form of edition page is generated using a plugin (sfguarduser) so It's deficult to make any changes?
Any Idea?
As the plugin documentation says, you can override the plugin module by creating a module with the same name in the application you want and by adding a require_once in the action.
As for your confirm and other javascript, you can override the generated partials by adding partials with the same name in your module, just as described here.
Related
I am a newbie in C# programming and web development. Kindly let me know how I can find the code files for the login and register page in ASP.NET MVC.
I created this simple web app using this crash course; https://www.youtube.com/watch?v=BfEjDD8mWYg&t=909s.
This is the screenshot of the page I want to locate and alter. I want to change the text next to the login and registration forms.
Looking forward to getting a reply from anyone who can help.
Thanks in advance
I tried looking in all the files, like the css file and all the files in the views folder, but I could not find the file I want to change the text on the registration and login page.
I check the video you provided and find that he created a project with Individual User Accounts, So the project will generate Register and Login page Automatically, But you can't find these pages in your project.
If you wanna find these pages, You need to Scaffold Identity:
From Solution Explorer, right-click on the project > Add > New
Scaffolded Item
.
From the left pane of the Add New Scaffolded Item dialog, select
Identity. Select Identity in the center pane. Select the Add
button.
Select pages you want to create, Here you can choose Login and Register page, Then To use your existing data context, select at least one file to override. You must select at least one file to add your data context.
After you finish these steps and generate page successfully, You will find these pages in Area/Identity/Pages/Account/... ,Then you can edit them.
More information you can refer to this Docs.
I've created in Asp .Net Core 2.1 - mvc Individual User Accounts and add scaffold identity.
I need override route Identity/Account/Register to Account/Register. I guess I need access in AccountController and add attr [Route("")].
How can i do it?. In advance thanks for help.
In the latest Identity, there is no longer an AccountController. The ASP.NET Core team have made the (controversial) decision to move everything to Razor Pages. The old Identity scaffold of authentication and account management controllers and views now exists as the "default UI", which is included by default when you use AddDefaultIdentity. That method internally calls AddDefaultUI.
To modify the default UI, you must scaffold the pieces you desire into your project, which can be accomplished via right-clicking on your project in the solution explorer and choosing Add > New Scaffolded Item... That will then give you a window where you can choose among various available scaffolds, one of which is Identity. Selecting that option will pop another window allowing you to choose which Razor Pages you would like to scaffold. You can choose any or all. Since the default UI remains included, the scaffolded pages function as overrides, so anything not included falls back to the default UI version.
If you abhor Razor Pages as I and many others do and want the old-style MVC controllers and views back, you now have no choice but to create them yourself. You can scaffold all the Identity pages into your project as a guide and then shuffle the code into your controller(s) and views. Then, simply delete the scaffolded pages when you're done. You'll also need to use AddIdentity in ConfigureServices instead of AddDefaultIdentity, or the default UI will still take precedence. It's frankly a pain in the butt, but that's how it is.
Can anyone guide me How to add new menu in a admin pannel of refinerycms in ruby on rails application.
I just add one more tab. Is there anyway.?
Admin pannel
It's call an Extension you can create generate a custom Extension and it will appears as a menu in the admin panel.
Also, when generating an Extension, make sure you pass the necessary switch, e.g. --i18n, to avoid manual updating them later.
I have very new requirement that I need to know we can achieve that with vaadin or not.
My team members already developed one functionality using jquery and jsp along with spring as backend. Suddenly, vaadin came into picture to develop UI.
Functionality:
Admin has the full access to all the modules. Admin user can add components from a pool of components to some other module. These settings can be saved into db. Later when I tried to access that module. Only those components(Admin selected components) should be available to me. In this case one jsp is automatically created with the admin selected components and that will be included into another jsp which is a user jsp.
My question is can vaadin fulfill this requirement?
Create one UI class (in GWT similar with EntryPoint) and create header , footer , leftside , rightside etc; And create Views as you want (for instance: userView , adminView). Add your default view in body content of UI class . Initialize Navigator for page navigation. When url was change or invoke by some request , navigator should manage relative body contents. Please check Usage of UI vs. Navigator+Views for further UI , Views and Navigation.
Here is example and sample codes. If you want to create as component , composition is a way.
This is repeatedly asked many times, however i couldn't find appropriate solution for my problem.
I want to create an Entry Form which will consists of following elements:
Text boxes, drop down fields (auto populated) , check boxes , radio buttons
After my research
i found that i need to create user control, or script file for above form and access it via Macro.
I don't want to use User control as my first preference is to controller-View-Model (i.e. cshtml)
I want to follow MVC approach to create above form. So
1) Do i need to create a seperate project for Add/Edit/Delete/Search Data Entry form?
2) OR i need to create cshtml file for the same(not so clear about this approach)
I'm looking this data entry form with easier for customization and i could use it in other applications as well.
From Umbraco 4.10 up to 6.0.x you can use MVC in Umbraco so there's no need to use an usercontrol. You probably want to use a SurfaceController where you can add any Action you want. The rest is standard MVC (Razor views to build your textboxes, drop downs, ...).
Check out the Umbraco MVC documentation where they explain how to use MVC in an Umbraco project.