ronin-rb / ronin-app

A local web interface for Ronin.
https://ronin-rb.dev
GNU Affero General Public License v3.0
26 stars 8 forks source link

Add an Add button or forms for all database models #93

Closed postmodern closed 7 months ago

postmodern commented 11 months ago

Add an Add button/link or a form to all database views. This form could possibly be added to the top of all db/*/index.erb views. The add form could also have it's own page which is linked to from their respective index.erb pages.

AI-Mozi commented 7 months ago

Is this simple form enough? Or maybe you want it to look different?

Screenshot 2024-04-03 at 16 30 16
postmodern commented 7 months ago

@AI-Mozi yes, perfect! I would move the Import button so it's on the same line as the input field. You can use a div and Bulma's field has-addons classes (see views/spider.erb for an example).

postmodern commented 7 months ago

Also, here are the database models that implement a self.import method:

lib/ronin/db/address.rb:      def self.import(address)
lib/ronin/db/advisory.rb:      def self.import(id)
lib/ronin/db/cert.rb:      def self.import(cert)
lib/ronin/db/cert_issuer.rb:      def self.import(name)
lib/ronin/db/cert_name.rb:      def self.import(name)
lib/ronin/db/cert_subject.rb:      def self.import(name)
lib/ronin/db/credential.rb:      def self.import(cred)
lib/ronin/db/email_address.rb:      def self.import(email)
lib/ronin/db/host_name.rb:      def self.import(name)
lib/ronin/db/organization.rb:      def self.import(name)
lib/ronin/db/password.rb:      def self.import(password)
lib/ronin/db/person.rb:      def self.import(name)
lib/ronin/db/phone_number.rb:      def self.import(number)
lib/ronin/db/port.rb:      def self.import(number)
lib/ronin/db/service.rb:      def self.import(name)
lib/ronin/db/url.rb:      def self.import(uri)
lib/ronin/db/user_name.rb:      def self.import(name)
AI-Mozi commented 7 months ago

@postmodern thanks for the list

postmodern commented 7 months ago

Implemented by PR #98.